mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
Fix a use of an invalid iterator when -debug-pass=Details is used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
44cf38c01f
commit
e187726208
@ -727,12 +727,12 @@ void PMDataManager::removeNotPreservedAnalysis(Pass *P) {
|
||||
&& std::find(PreservedSet.begin(), PreservedSet.end(), Info->first) ==
|
||||
PreservedSet.end()) {
|
||||
// Remove this analysis
|
||||
AvailableAnalysis.erase(Info);
|
||||
if (PassDebugging >= Details) {
|
||||
Pass *S = Info->second;
|
||||
cerr << " -- '" << P->getPassName() << "' is not preserving '";
|
||||
cerr << S->getPassName() << "'\n";
|
||||
}
|
||||
AvailableAnalysis.erase(Info);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user