diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-12-01 00:43:48 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-12-01 00:43:48 +0000 |
commit | 3864cd4cab956526b99b634e15e7fd5d5441e3a7 (patch) | |
tree | 11bc6b22af16ad8e0f8901e0aca3bef9189e78fb /include | |
parent | 663e441a752cabef645fdb2640b6f1d5dc66207b (diff) | |
download | llvm-3864cd4cab956526b99b634e15e7fd5d5441e3a7.tar.gz llvm-3864cd4cab956526b99b634e15e7fd5d5441e3a7.tar.bz2 llvm-3864cd4cab956526b99b634e15e7fd5d5441e3a7.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/APInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index b1790f86ba..1799b21b18 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -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]); } |