llvm.org GIT mirror llvm / 6060969
[PM] Fix a bug where we didn't properly clear the list map when the list became empty. This would manifest later as an assert failure due to a non-empty list map but an empty result map. This doesn't easily manifest with just the module pass manager and the function pass manager, but the next commit will add the CGSCC pass manager that hits this assert immediately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206744 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
164164 while (!InvalidatedPassIDs.empty())
165165 FunctionAnalysisResults.erase(
166166 std::make_pair(InvalidatedPassIDs.pop_back_val(), F));
167 if (ResultsList.empty())
168 FunctionAnalysisResultLists.erase(F);
167169 }
168170
169171 char FunctionAnalysisManagerModuleProxy::PassID;