Fix an index calculation thinko.

llvm-svn: 112337
This commit is contained in:
Dan Gohman 2010-08-28 00:39:27 +00:00
parent 8ee9394750
commit fe22f1d3cc
1 changed files with 1 additions and 1 deletions

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)