Skip to content

Commit bff6c74

Browse files
committed
[LifetimeCompletion] Enable.
Complete all lifetimes during SILGenCleanup.
1 parent 92e5dc8 commit bff6c74

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/swift/AST/SILOptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ class SILOptions {
180180
/// If set to true, compile with the SIL Opaque Values enabled.
181181
bool EnableSILOpaqueValues = false;
182182

183-
/// Require linear OSSA lifetimes after SILGen
184-
bool OSSACompleteLifetimes = false;
183+
/// Introduce linear OSSA lifetimes after SILGen
184+
bool OSSACompleteLifetimes = true;
185185

186186
/// Verify linear OSSA lifetimes after SILGen
187187
bool OSSAVerifyComplete = false;

lib/DriverTool/sil_opt_main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ struct SILOptOptions {
231231
EnableSILOpaqueValues = llvm::cl::opt<bool>("enable-sil-opaque-values",
232232
llvm::cl::desc("Compile the module with sil-opaque-values enabled."));
233233

234-
llvm::cl::opt<bool>
235-
EnableOSSACompleteLifetimes = llvm::cl::opt<bool>("enable-ossa-complete-lifetimes",
236-
llvm::cl::desc("Require linear OSSA lifetimes after SILGenCleanup."));
234+
llvm::cl::opt<bool> EnableOSSACompleteLifetimes = llvm::cl::opt<bool>(
235+
"enable-ossa-complete-lifetimes", llvm::cl::init(true),
236+
llvm::cl::desc("Require linear OSSA lifetimes after SILGenCleanup."));
237237
llvm::cl::opt<bool>
238238
EnableOSSAVerifyComplete = llvm::cl::opt<bool>("enable-ossa-verify-complete",
239239
llvm::cl::desc("Verify linear OSSA lifetimes after SILGenCleanup."));

0 commit comments

Comments
 (0)