mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
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
This commit is contained in:
@ -5063,7 +5063,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
|||||||
ConstantInt *CUI = cast<ConstantInt>(CI);
|
ConstantInt *CUI = cast<ConstantInt>(CI);
|
||||||
if (CUI->getZExtValue() == 1ULL << (SrcTySize-1))
|
if (CUI->getZExtValue() == 1ULL << (SrcTySize-1))
|
||||||
return new ICmpInst(ICmpInst::ICMP_SGT, CastOp,
|
return new ICmpInst(ICmpInst::ICMP_SGT, CastOp,
|
||||||
ConstantInt::get(SrcTy, -1));
|
ConstantInt::get(SrcTy, -1ULL));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ICmpInst::ICMP_UGT: { // X u> 127 => X s< 0
|
case ICmpInst::ICMP_UGT: { // X u> 127 => X s< 0
|
||||||
|
Reference in New Issue
Block a user