llvm.org GIT mirror llvm / 3864cd4
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 Eli Friedman 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
10451045 if (isSingleWord())
10461046 return int64_t(VAL << (APINT_BITS_PER_WORD - BitWidth)) >>
10471047 (APINT_BITS_PER_WORD - BitWidth);
1048 assert(getActiveBits() <= 64 && "Too many bits for int64_t");
1048 assert(getMinSignedBits() <= 64 && "Too many bits for int64_t");
10491049 return int64_t(pVal[0]);
10501050 }
10511051