[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Mon Apr 16 13:44:37 PDT 2007
Changes in directory llvm/lib/VMCore:
PassManager.cpp updated: 1.150 -> 1.151
---
Log message:
Do not assert during analysis implementation initialization.
---
Diffs of the changes: (+3 -1)
PassManager.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.150 llvm/lib/VMCore/PassManager.cpp:1.151
--- llvm/lib/VMCore/PassManager.cpp:1.150 Mon Apr 16 15:39:59 2007
+++ llvm/lib/VMCore/PassManager.cpp Mon Apr 16 15:44:16 2007
@@ -781,7 +781,9 @@
E = AnUsage.getRequiredSet().end(); I != E; ++I) {
Pass *Impl = findAnalysisPass(*I, true);
if (Impl == 0)
- assert(0 && "Analysis used but not available!");
+ // This may be analysis pass that is initialized on the fly.
+ // If that is not the case then it will raise an assert when it is used.
+ continue;
AnalysisResolver *AR = P->getResolver();
AR->addAnalysisImplsPair(*I, Impl);
}
More information about the llvm-commits
mailing list