Silence warning

llvm-svn: 35137
This commit is contained in:
Anton Korobeynikov 2007-03-17 14:48:06 +00:00
parent f6f043332f
commit 22f436da42
1 changed files with 2 additions and 2 deletions

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: