Don't use an iterator which is potentially invalidated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-08-31 21:58:28 +00:00
parent 4344979ba9
commit a5505cb9c9

View File

@ -3912,7 +3912,7 @@ const SCEV *ScalarEvolution::getSCEVAtScope(const SCEV *V, const Loop *L) {
// Otherwise compute it.
const SCEV *C = computeSCEVAtScope(V, L);
Pair.first->second = C;
ValuesAtScopes[V][L] = C;
return C;
}