Silence warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2007-03-17 14:48:06 +00:00
parent c6a2410d58
commit 1cc6452181

View File

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