From a5505cb9c992cb4bde5656fb6bd14d89b8f1a744 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 31 Aug 2009 21:58:28 +0000 Subject: [PATCH] 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 --- lib/Analysis/ScalarEvolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 3b7e4387508..85e8fbb0984 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; } -- 2.34.1