Add assert.

llvm-svn: 50596
This commit is contained in:
Devang Patel 2008-05-02 22:13:33 +00:00
parent 6238dada27
commit ab8cacee2d
1 changed files with 1 additions and 0 deletions

View File

@ -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.