CallGraphSCCPass manager may require other passes.
Use schedulePass() to accomodate these requirement instead of directly assigning a manager to new CallGraph PassManager. llvm-svn: 37695
This commit is contained in:
parent
7c3a5513f7
commit
703de8fea8
|
@ -178,7 +178,7 @@ void CallGraphSCCPass::assignPassManager(PMStack &PMS,
|
|||
// [3] Assign manager to manage this new manager. This may create
|
||||
// and push new managers into PMS
|
||||
Pass *P = dynamic_cast<Pass *>(CGP);
|
||||
P->assignPassManager(PMS);
|
||||
TPM->schedulePass(P);
|
||||
|
||||
// [4] Push new manager into PMS
|
||||
PMS.push(CGP);
|
||||
|
|
Loading…
Reference in New Issue