mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 22:38:56 +00:00
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:
parent
693941bb6e
commit
f4bd76a035
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user