From: Anton Korobeynikov Date: Sat, 17 Mar 2007 14:48:06 +0000 (+0000) Subject: Silence warning X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1cc645218105be635851b195cb44b1598830106c;p=oota-llvm.git Silence warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35137 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index 9c88e283284..7ee4bc827d3 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -2054,8 +2054,8 @@ namespace { case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_ULT: if (Op1->getValue() != 0) - NextVal = cast(ConstantExpr::getAdd( - Op1, ConstantInt::get(Op1->getType(), -1))); + NextVal = cast(ConstantExpr::getSub( + Op1, ConstantInt::get(Op1->getType(), 1))); break; case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_UGT: