fix PR8928 by clearing a stale map, patch by Jakub Staszak!
authorChris Lattner <sabre@nondot.org>
Mon, 24 Jan 2011 18:36:51 +0000 (18:36 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Jan 2011 18:36:51 +0000 (18:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124132 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ProfileEstimatorPass.cpp

index 2b9afe307d1aefc00ca59d323034049bccfe1505..667ee1cc348a62b5a6a950f1a38e0d24571bf4f0 100644 (file)
@@ -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)