diff options
-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 |