aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-04-16 20:44:16 +0000
committerDevang Patel <dpatel@apple.com>2007-04-16 20:44:16 +0000
commitf4bd76a035f7d85a576c75c7680ed6baddc74674 (patch)
treeec7e393a7b6285284037cc1ad42c83ab3b7adeb6 /lib/VMCore
parent693941bb6ed0389f998fe516eba6af738e951f79 (diff)
downloadexternal_llvm-f4bd76a035f7d85a576c75c7680ed6baddc74674.zip
external_llvm-f4bd76a035f7d85a576c75c7680ed6baddc74674.tar.gz
external_llvm-f4bd76a035f7d85a576c75c7680ed6baddc74674.tar.bz2
Do not assert during analysis implementation initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/PassManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index 9a2a57b..10e6e2f 100644
--- a/lib/VMCore/PassManager.cpp
+++ b/lib/VMCore/PassManager.cpp
@@ -781,7 +781,9 @@ void PMDataManager::initializeAnalysisImpl(Pass *P) {
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);
}