Do not assert during analysis implementation initialization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-04-16 20:44:16 +00:00
parent 693941bb6e
commit f4bd76a035

View File

@ -781,7 +781,9 @@ void PMDataManager::initializeAnalysisImpl(Pass *P) {
E = AnUsage.getRequiredSet().end(); I != E; ++I) { E = AnUsage.getRequiredSet().end(); I != E; ++I) {
Pass *Impl = findAnalysisPass(*I, true); Pass *Impl = findAnalysisPass(*I, true);
if (Impl == 0) 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(); AnalysisResolver *AR = P->getResolver();
AR->addAnalysisImplsPair(*I, Impl); AR->addAnalysisImplsPair(*I, Impl);
} }