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:
Eli Friedman 2008-12-01 00:43:48 +00:00
parent 663e441a75
commit 3864cd4cab

View File

@ -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]);
}