mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fix bogus assertion using getSExtValue for legitimate values, like -1 in
an 128-bit-wide integer. No testcase; the issue I ran into depends on local changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60311 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
663e441a75
commit
3864cd4cab
@ -1046,7 +1046,7 @@ public:
|
||||
if (isSingleWord())
|
||||
return int64_t(VAL << (APINT_BITS_PER_WORD - BitWidth)) >>
|
||||
(APINT_BITS_PER_WORD - BitWidth);
|
||||
assert(getActiveBits() <= 64 && "Too many bits for int64_t");
|
||||
assert(getMinSignedBits() <= 64 && "Too many bits for int64_t");
|
||||
return int64_t(pVal[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user