summaryrefslogtreecommitdiff
path: root/lib/Analysis/ProfileEstimatorPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-24 18:36:51 +0000
committerChris Lattner <sabre@nondot.org>2011-01-24 18:36:51 +0000
commit0e3fae27a1634f51943d06588e32a550dae6a4b9 (patch)
tree4915a2bfcc0a637f97cf0d3272e68414dc887e89 /lib/Analysis/ProfileEstimatorPass.cpp
parent1f59e09c9ac391fb8305f2cd52492e2ac70bd782 (diff)
downloadllvm-0e3fae27a1634f51943d06588e32a550dae6a4b9.tar.gz
llvm-0e3fae27a1634f51943d06588e32a550dae6a4b9.tar.bz2
llvm-0e3fae27a1634f51943d06588e32a550dae6a4b9.tar.xz
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
Diffstat (limited to 'lib/Analysis/ProfileEstimatorPass.cpp')
-rw-r--r--lib/Analysis/ProfileEstimatorPass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/ProfileEstimatorPass.cpp b/lib/Analysis/ProfileEstimatorPass.cpp
index 2b9afe307d..667ee1cc34 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)