Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.222 -> 1.223 --- Log message: Correct the implelmentation of ConstantInt::getAllOnesValue() for bit widths > 64 bits. --- Diffs of the changes: (+1 -1) Constants.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/VMCore/Constants.cpp diff -u llvm/lib/VMCore/Constants.cpp:1.222 llvm/lib/VMCore/Constants.cpp:1.223 --- llvm/lib/VMCore/Constants.cpp:1.222 Mon Feb 26 21:05:06 2007 +++ llvm/lib/VMCore/Constants.cpp Tue Feb 27 01:57:53 2007 @@ -118,7 +118,7 @@ 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; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits