forked from OSchip/llvm-project
Don't use an iterator which is potentially invalidated.
llvm-svn: 80632
This commit is contained in:
parent
e98396d3fc
commit
dba696afc0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue