From 25e681ac221e83a7ebead99b4d3d88f1b3ab49bd Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 21 Jun 2007 22:29:02 +0000 Subject: [PATCH] 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 --- lib/Analysis/IPA/CallGraphSCCPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index f05c8b86f8e..a7e9dd00e56 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -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(CGP); - P->assignPassManager(PMS); + TPM->schedulePass(P); // [4] Push new manager into PMS PMS.push(CGP);