1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

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 814d1deba8
commit 4bf452b5e4

View File

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