Fix an index calculation thinko.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112337 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-08-28 00:39:27 +00:00
parent fd7fd940c3
commit 5bb307d5c8

View File

@ -1430,7 +1430,7 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
return Mul;
Ops[i] = Mul;
Ops.erase(Ops.begin()+i+1, Ops.begin()+i+Count);
i -= Count - 1; e -= Count - 1;
--i; e -= Count - 1;
FoundMatch = true;
}
if (FoundMatch)