mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add assert.
llvm-svn: 50596
This commit is contained in:
parent
5346b6b0a7
commit
4b2359feec
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user