1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

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 64d4cb968a
commit 1a73dcfbdd

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)