Skip to content

Commit 381ae79

Browse files
committed
[semantic-arc-opts] Move this past closure lifetime fixup.
1 parent c7a6f8a commit 381ae79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ static void addMandatoryOptPipeline(SILPassPipelinePlan &P) {
9999
// optimizer pipeline is run implying we can put a pass that requires OSSA
100100
// there.
101101
const auto &Options = P.getOptions();
102+
P.addClosureLifetimeFixup();
102103
if (Options.EnableMandatorySemanticARCOpts && Options.shouldOptimize()) {
103104
P.addSemanticARCOpts();
104105
}
105-
P.addClosureLifetimeFixup();
106106
if (Options.StripOwnershipDuringDiagnosticsPipeline)
107107
P.addOwnershipModelEliminator();
108108
P.addMandatoryInlining();

0 commit comments

Comments
 (0)