fix PR8928 by clearing a stale map, patch by Jakub Staszak!

llvm-svn: 124132
This commit is contained in:
Chris Lattner 2011-01-24 18:36:51 +00:00
parent 91027008f1
commit f277b5d434
1 changed files with 1 additions and 0 deletions

View 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)