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 | 24f1a0e78f6604d15a329369120b011509b1e17a (patch) | |
| tree | 68ad802439ff2cbba9e497bd229261ad25228f2a /llvm | |
| parent | fad3f247e4fb1a1c553ffdaa898ef652d725027f (diff) | |
| download | bcm5719-llvm-24f1a0e78f6604d15a329369120b011509b1e17a.tar.gz bcm5719-llvm-24f1a0e78f6604d15a329369120b011509b1e17a.zip | |
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.
llvm-svn: 34796
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 23dcf0ccdea..7d57022d0fb 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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 |

