diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 19:33:52 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 19:33:52 +0000 |
commit | 62aa905595187823bd16f83986d6091fec9f1938 (patch) | |
tree | 3dbc65327e7ad7a3f0bb774a368e903e3c7a2a39 /lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | c7cd7a0bb1debf6e71c71e63c595059a306177dd (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 23dcf0ccde..7d57022d0f 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5063,7 +5063,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { 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 |