mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Move the closure specializer over to using the new call graph.
Swift SVN r21568
This commit is contained in:
@@ -364,7 +364,7 @@ public:
|
||||
|
||||
bool Changed = false;
|
||||
// Specialize going bottom-up in the call graph.
|
||||
for (auto *F : CGA->bottomUpCallGraphOrder()) {
|
||||
for (auto *F : CGA->getCallGraph().getBottomUpFunctionOrder()) {
|
||||
// If F is empty, attempt to link it. Skip it if we fail to do so.
|
||||
if (F->empty() &&
|
||||
!getModule()->linkFunction(F, SILModule::LinkingMode::LinkAll))
|
||||
|
||||
Reference in New Issue
Block a user