[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

Zhou Sheng zhousheng00 at gmail.com
Tue Mar 20 21:34:54 PDT 2007



Changes in directory llvm/lib/Support:

APInt.cpp updated: 1.74 -> 1.75
---
Log message:

Fix a bug in getAllOnesValue() which broke
some test cases for bitwidth > 64.


---
Diffs of the changes:  (+1 -1)

 APInt.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Support/APInt.cpp
diff -u llvm/lib/Support/APInt.cpp:1.74 llvm/lib/Support/APInt.cpp:1.75
--- llvm/lib/Support/APInt.cpp:1.74	Tue Mar 20 15:42:36 2007
+++ llvm/lib/Support/APInt.cpp	Tue Mar 20 23:34:37 2007
@@ -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();






More information about the llvm-commits mailing list