mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
CallGraphSCCPass manager may require other passes.
Use schedulePass() to accomodate these requirement instead of directly assigning a manager to new CallGraph PassManager. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3fb671480
commit
25e681ac22
@ -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
Block a user