[llvm-commits] [llvm] r112337 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Dan Gohman
gohman at apple.com
Fri Aug 27 17:39:27 PDT 2010
Author: djg
Date: Fri Aug 27 19:39:27 2010
New Revision: 112337
URL: http://llvm.org/viewvc/llvm-project?rev=112337&view=rev
Log:
Fix an index calculation thinko.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=112337&r1=112336&r2=112337&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Fri Aug 27 19:39:27 2010
@@ -1430,7 +1430,7 @@
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)
More information about the llvm-commits
mailing list