summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf277b5d4348402162c0afd064a3bc20ec7c99e3c (patch)
treea406edb7ea1f3745a86a2a317b7469038c790225 /llvm/lib/Analysis/ProfileEstimatorPass.cpp
parent91027008f1e2a2ef65be47c6b3aedebd119cb2eb (diff)
downloadbcm5719-llvm-f277b5d4348402162c0afd064a3bc20ec7c99e3c.tar.gz
bcm5719-llvm-f277b5d4348402162c0afd064a3bc20ec7c99e3c.zip
fix PR8928 by clearing a stale map, patch by Jakub Staszak!
llvm-svn: 124132
Diffstat (limited to 'llvm/lib/Analysis/ProfileEstimatorPass.cpp')
-rw-r--r--llvm/lib/Analysis/ProfileEstimatorPass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ProfileEstimatorPass.cpp b/llvm/lib/Analysis/ProfileEstimatorPass.cpp
index 2b9afe307d1..667ee1cc348 100644
--- a/llvm/lib/Analysis/ProfileEstimatorPass.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud