diff options
-rw-r--r-- | lib/Analysis/IPA/CallGraphSCCPass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index 90e26266f8..99954d632d 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -158,6 +158,7 @@ void CallGraphSCCPass::assignPassManager(PMStack &PMS, PMS.top()->getPassManagerType() > PMT_CallGraphPassManager) PMS.pop(); + assert (!PMS.empty() && "Unable to handle Call Graph Pass"); CGPassManager *CGP = dynamic_cast<CGPassManager *>(PMS.top()); // Create new Call Graph SCC Pass Manager if it does not exist. |