[llvm-commits] [llvm] r80632 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Dan Gohman
gohman at apple.com
Mon Aug 31 14:58:28 PDT 2009
Author: djg
Date: Mon Aug 31 16:58:28 2009
New Revision: 80632
URL: http://llvm.org/viewvc/llvm-project?rev=80632&view=rev
Log:
Don't use an iterator which is potentially invalidated.
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=80632&r1=80631&r2=80632&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Mon Aug 31 16:58:28 2009
@@ -3912,7 +3912,7 @@
// Otherwise compute it.
const SCEV *C = computeSCEVAtScope(V, L);
- Pair.first->second = C;
+ ValuesAtScopes[V][L] = C;
return C;
}
More information about the llvm-commits
mailing list