projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
663e441
)
Fix bogus assertion using getSExtValue for legitimate values, like -1 in
author
Eli Friedman
<eli.friedman@gmail.com>
Mon, 1 Dec 2008 00:43:48 +0000
(
00:43
+0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Mon, 1 Dec 2008 00:43:48 +0000
(
00:43
+0000)
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
include/llvm/ADT/APInt.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/APInt.h
b/include/llvm/ADT/APInt.h
index b1790f86bae23e608da7df3ca9afda1108184259..1799b21b183e44c6b9bf1097ad6f7e2cb757221a 100644
(file)
--- 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(get
Active
Bits() <= 64 && "Too many bits for int64_t");
+ assert(get
MinSigned
Bits() <= 64 && "Too many bits for int64_t");
return int64_t(pVal[0]);
}