Skip to content

Commit b4a5c5c

Browse files
committed
Add a temporary flag: -enable-lifetime-dependence-insertion
To bootstrap lit tests until the stdlib builds with ~Escapable.
1 parent 2e7c29c commit b4a5c5c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ llvm::cl::opt<bool>
6969
EnableDeinitDevirtualizer("enable-deinit-devirtualizer", llvm::cl::init(false),
7070
llvm::cl::desc("Enable the DestroyHoisting pass."));
7171

72+
// Temporary flag until the stdlib builds with ~Escapable
73+
llvm::cl::opt<bool>
74+
EnableLifetimeDependenceInsertion(
75+
"enable-lifetime-dependence-insertion", llvm::cl::init(false),
76+
llvm::cl::desc("Enable lifetime dependence insertion."));
77+
78+
// Temporary flag until the stdlib builds with ~Escapable
7279
llvm::cl::opt<bool>
7380
EnableLifetimeDependenceDiagnostics(
7481
"enable-lifetime-dependence-diagnostics", llvm::cl::init(false),
@@ -291,7 +298,7 @@ SILPassPipelinePlan::getSILGenPassPipeline(const SILOptions &Options) {
291298
P.startPipeline("SILGen Passes");
292299

293300
P.addSILGenCleanup();
294-
if (EnableLifetimeDependenceDiagnostics) {
301+
if (EnableLifetimeDependenceDiagnostics || EnableLifetimeDependenceInsertion) {
295302
P.addLifetimeDependenceInsertion();
296303
}
297304
if (SILViewSILGenCFG) {

0 commit comments

Comments
 (0)