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:
7681435
)
Fix a bug in getAllOnesValue() which broke
author
Zhou Sheng
<zhousheng00@gmail.com>
Wed, 21 Mar 2007 04:34:37 +0000
(
04:34
+0000)
committer
Zhou Sheng
<zhousheng00@gmail.com>
Wed, 21 Mar 2007 04:34:37 +0000
(
04:34
+0000)
some test cases for bitwidth > 64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35232
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index 0bfc95bde3f746c31e53a36b30e94904b4171125..27d4741321ca0d3a6e4d6b8670ec3b425adb7c27 100644
(file)
--- a/
lib/Support/APInt.cpp
+++ b/
lib/Support/APInt.cpp
@@
-605,7
+605,7
@@
APInt& APInt::set() {
}
// Set all the bits in all the words.
- for (uint32_t i = 0; i < getNumWords()
- 1
; ++i)
+ for (uint32_t i = 0; i < getNumWords(); ++i)
pVal[i] = -1ULL;
// Clear the unused ones
return clearUnusedBits();