diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2007-03-21 04:34:37 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2007-03-21 04:34:37 +0000 |
commit | 6dbe233959eed02971f3075e0c48234238ff6fa3 (patch) | |
tree | 8106fcda9291aa301ee11e9dcf75ee1866b41225 /lib/Support/APInt.cpp | |
parent | 768143547ba66c8cbeef09d4234ae908bbf5b9f8 (diff) |
Fix a bug in getAllOnesValue() which broke
some test cases for bitwidth > 64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r-- | lib/Support/APInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 0bfc95bde3..27d4741321 100644 --- 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(); |