mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Fix bug spotted by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40725 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -85,17 +85,17 @@ public: | |||||||
|    |    | ||||||
|   APSInt& extend(uint32_t width) { |   APSInt& extend(uint32_t width) { | ||||||
|     if (IsUnsigned) |     if (IsUnsigned) | ||||||
|       *this = zext(width); |       zext(width); | ||||||
|     else |     else | ||||||
|       *this = sext(width); |       sext(width); | ||||||
|     return *this; |     return *this; | ||||||
|   } |   } | ||||||
|    |    | ||||||
|   APSInt& extOrTrunc(uint32_t width) { |   APSInt& extOrTrunc(uint32_t width) { | ||||||
|       if (IsUnsigned) |       if (IsUnsigned) | ||||||
|         *this = zextOrTrunc(width); |         zextOrTrunc(width); | ||||||
|       else |       else | ||||||
|         *this = sextOrTrunc(width); |         sextOrTrunc(width); | ||||||
|       return *this; |       return *this; | ||||||
|   } |   } | ||||||
|    |    | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user