commit | 0458c1db71067be9ee545d9a51d4330576609747 | [log] [tgz] |
---|---|---|
author | Zhou Sheng <zhousheng00@gmail.com> | Wed Mar 21 04:34:37 2007 +0000 |
committer | Zhou Sheng <zhousheng00@gmail.com> | Wed Mar 21 04:34:37 2007 +0000 |
tree | ec8e0201da6ad575d801a7ce3fa808db898d95ed | |
parent | 61eee86487fa7368140f3e56c1a6eb9d2f529bca [diff] [blame] |
Fix a bug in getAllOnesValue() which broke some test cases for bitwidth > 64. llvm-svn: 35232
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 0bfc95b..27d4741 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp
@@ -605,7 +605,7 @@ } // 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();