Do not assert during analysis implementation initialization.

llvm-svn: 36158
This commit is contained in:
Devang Patel 2007-04-16 20:44:16 +00:00
parent 2ff4492a2c
commit 56a5c620fe
1 changed files with 3 additions and 1 deletions

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);
} }