[llvm-commits] [llvm] r58816 - /llvm/trunk/lib/VMCore/PassManager.cpp
Dan Gohman
gohman at apple.com
Thu Nov 6 13:57:17 PST 2008
Author: djg
Date: Thu Nov 6 15:57:17 2008
New Revision: 58816
URL: http://llvm.org/viewvc/llvm-project?rev=58816&view=rev
Log:
Fix a use of an invalid iterator when -debug-pass=Details is used.
Modified:
llvm/trunk/lib/VMCore/PassManager.cpp
Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=58816&r1=58815&r2=58816&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Thu Nov 6 15:57:17 2008
@@ -727,12 +727,12 @@
&& 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);
}
}
More information about the llvm-commits
mailing list