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:
Devang Patel 2007-06-21 22:29:02 +00:00
parent 7c3a5513f7
commit 703de8fea8
1 changed files with 1 additions and 1 deletions

View File

@ -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);