OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d8ae5
)
Correct the implelmentation of ConstantInt::getAllOnesValue() for bit
author
Reid Spencer
<rspencer@reidspencer.com>
Tue, 27 Feb 2007 07:57:53 +0000
(07:57 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Tue, 27 Feb 2007 07:57:53 +0000
(07:57 +0000)
widths > 64 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34663
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Constants.cpp
b/lib/VMCore/Constants.cpp
index
64c2650
..
0c50796
100644
(file)
--- a/
lib/VMCore/Constants.cpp
+++ b/
lib/VMCore/Constants.cpp
@@
-118,7
+118,7
@@
ConstantInt *ConstantInt::getAllOnesValue(const Type *Ty) {
if (ITy->getBitWidth() == 1)
return ConstantInt::getTrue();
else
- return ConstantInt::get(Ty,
int64_t(-1
));
+ return ConstantInt::get(Ty,
APInt::getAllOnesValue(ITy->getBitWidth()
));
return 0;
}