[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Reid Spencer
reid at x10sys.com
Thu Mar 1 11:34:09 PST 2007
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.637 -> 1.638
---
Log message:
The 64-bit constructor for ConstantInt changes from int64_t to uint64_t.
This caused a warning for construction with -1. Avoid the warning by using
-1ULL instead.
---
Diffs of the changes: (+1 -1)
InstructionCombining.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.637 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.638
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.637 Fri Feb 23 19:03:45 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Thu Mar 1 13:33:52 2007
@@ -5063,7 +5063,7 @@
ConstantInt *CUI = cast<ConstantInt>(CI);
if (CUI->getZExtValue() == 1ULL << (SrcTySize-1))
return new ICmpInst(ICmpInst::ICMP_SGT, CastOp,
- ConstantInt::get(SrcTy, -1));
+ ConstantInt::get(SrcTy, -1ULL));
break;
}
case ICmpInst::ICMP_UGT: { // X u> 127 => X s< 0
More information about the llvm-commits
mailing list