commit | c8b451fceb3e26addeda713ec01dbaf1fa183711 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Aug 31 21:58:28 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Aug 31 21:58:28 2009 +0000 |
tree | eed469131d8f7c2f677683380d6212de48cbb459 | |
parent | acce6ef067e3e784306ea3e13c30913722a2207c [diff] [blame] |
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
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 @@ // Otherwise compute it. const SCEV *C = computeSCEVAtScope(V, L); - Pair.first->second = C; + ValuesAtScopes[V][L] = C; return C; }