From 0e3fae27a1634f51943d06588e32a550dae6a4b9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 24 Jan 2011 18:36:51 +0000 Subject: fix PR8928 by clearing a stale map, patch by Jakub Staszak! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124132 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ProfileEstimatorPass.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Analysis/ProfileEstimatorPass.cpp') diff --git a/lib/Analysis/ProfileEstimatorPass.cpp b/lib/Analysis/ProfileEstimatorPass.cpp index 2b9afe3..667ee1c 100644 --- a/lib/Analysis/ProfileEstimatorPass.cpp +++ b/lib/Analysis/ProfileEstimatorPass.cpp @@ -323,6 +323,7 @@ bool ProfileEstimatorPass::runOnFunction(Function &F) { FunctionInformation.erase(&F); BlockInformation[&F].clear(); EdgeInformation[&F].clear(); + BBToVisit.clear(); // Mark all blocks as to visit. for (Function::iterator bi = F.begin(), be = F.end(); bi != be; ++bi) -- cgit v1.1