Skip to content

Commit 339ef00

Browse files
committed
Disabled destroy hoisting for lexical lifetimes.
When -enable-experimental-lexical-lifetimes is passed, disable the destroy hoisting pass.
1 parent 23a9a1d commit 339ef00

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
@@ -138,7 +138,7 @@ static void addMandatoryDiagnosticOptPipeline(SILPassPipelinePlan &P) {
138138
P.addSILSkippingChecker();
139139
#endif
140140

141-
if (Options.shouldOptimize()) {
141+
if (Options.shouldOptimize() && !Options.EnableExperimentalLexicalLifetimes) {
142142
P.addDestroyHoisting();
143143
}
144144
P.addMandatoryInlining();

0 commit comments

Comments
 (0)