diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-31 21:58:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-31 21:58:28 +0000 |
commit | a5505cb9c992cb4bde5656fb6bd14d89b8f1a744 (patch) | |
tree | eed469131d8f7c2f677683380d6212de48cbb459 | |
parent | 4344979ba9de3564d5f59f7947a6aec421d79288 (diff) | |
download | external_llvm-a5505cb9c992cb4bde5656fb6bd14d89b8f1a744.zip external_llvm-a5505cb9c992cb4bde5656fb6bd14d89b8f1a744.tar.gz external_llvm-a5505cb9c992cb4bde5656fb6bd14d89b8f1a744.tar.bz2 |
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
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 3b7e438..85e8fbb 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -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; } |