1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Silence warning

llvm-svn: 35137
This commit is contained in:
Anton Korobeynikov 2007-03-17 14:48:06 +00:00
parent 5be8544e8a
commit b34e09291b

View File

@ -2054,8 +2054,8 @@ namespace {
case ICmpInst::ICMP_SLT:
case ICmpInst::ICMP_ULT:
if (Op1->getValue() != 0)
NextVal = cast<ConstantInt>(ConstantExpr::getAdd(
Op1, ConstantInt::get(Op1->getType(), -1)));
NextVal = cast<ConstantInt>(ConstantExpr::getSub(
Op1, ConstantInt::get(Op1->getType(), 1)));
break;
case ICmpInst::ICMP_SGT:
case ICmpInst::ICMP_UGT: