Don't use an iterator which is potentially invalidated.

llvm-svn: 80632
This commit is contained in:
Dan Gohman 2009-08-31 21:58:28 +00:00
parent e98396d3fc
commit dba696afc0
1 changed files with 1 additions and 1 deletions

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;
}