diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-24 18:36:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-24 18:36:51 +0000 |
commit | 0e3fae27a1634f51943d06588e32a550dae6a4b9 (patch) | |
tree | 4915a2bfcc0a637f97cf0d3272e68414dc887e89 /lib/Analysis/ProfileEstimatorPass.cpp | |
parent | 1f59e09c9ac391fb8305f2cd52492e2ac70bd782 (diff) | |
download | external_llvm-0e3fae27a1634f51943d06588e32a550dae6a4b9.zip external_llvm-0e3fae27a1634f51943d06588e32a550dae6a4b9.tar.gz external_llvm-0e3fae27a1634f51943d06588e32a550dae6a4b9.tar.bz2 |
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) |