commit | 0e3fae27a1634f51943d06588e32a550dae6a4b9 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Jan 24 18:36:51 2011 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Jan 24 18:36:51 2011 +0000 |
tree | 4915a2bfcc0a637f97cf0d3272e68414dc887e89 | |
parent | 1f59e09c9ac391fb8305f2cd52492e2ac70bd782 [diff] [blame] |
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
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 @@ 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)