mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[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. llvm-svn: 206744
This commit is contained in:
parent
15dcaa6b2b
commit
aaa7e37c5d
@ -165,6 +165,8 @@ void FunctionAnalysisManager::invalidateImpl(Function *F,
|
||||
while (!InvalidatedPassIDs.empty())
|
||||
FunctionAnalysisResults.erase(
|
||||
std::make_pair(InvalidatedPassIDs.pop_back_val(), F));
|
||||
if (ResultsList.empty())
|
||||
FunctionAnalysisResultLists.erase(F);
|
||||
}
|
||||
|
||||
char FunctionAnalysisManagerModuleProxy::PassID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user