From dba696afc0f31e27ed49f47721fdc6f03dd02654 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 31 Aug 2009 21:58:28 +0000 Subject: Don't use an iterator which is potentially invalidated. llvm-svn: 80632 --- llvm/lib/Analysis/ScalarEvolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 3b7e4387508..85e8fbb0984 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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; } -- cgit v1.2.3