Skip to content

Commit 3daf1c1

Browse files
authored
Merge pull request #23596 from gottesmm/pr-c89d1dc818622fef8e851f332257fa4c73ad6aa7
[semantic-arc-opts] Move this past closure lifetime fixup.
2 parents e622ea6 + 381ae79 commit 3daf1c1

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)