File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ static llvm::cl::opt<bool> DisableSILOwnershipVerifier(
81
81
llvm::cl::desc (
82
82
" Do not verify SIL ownership invariants during SIL verification" ));
83
83
84
+ static llvm::cl::opt<bool > EnableOwnershipLoweringAfterDiagnostics (
85
+ " enable-ownership-lowering-after-diagnostics" ,
86
+ llvm::cl::desc (" Enable ownership lowering after diagnostics" ),
87
+ llvm::cl::init(false ));
88
+
84
89
static llvm::cl::opt<bool >
85
90
EnableSILOpaqueValues (" enable-sil-opaque-values" ,
86
91
llvm::cl::desc (" Compile the module with sil-opaque-values enabled." ));
@@ -333,6 +338,8 @@ int main(int argc, char **argv) {
333
338
if (OptimizationGroup != OptGroup::Diagnostics)
334
339
SILOpts.OptMode = OptimizationMode::ForSpeed;
335
340
SILOpts.VerifySILOwnership = !DisableSILOwnershipVerifier;
341
+ SILOpts.StripOwnershipAfterSerialization =
342
+ EnableOwnershipLoweringAfterDiagnostics;
336
343
337
344
SILOpts.VerifyExclusivity = VerifyExclusivity;
338
345
if (EnforceExclusivity.getNumOccurrences () != 0 ) {
You can’t perform that action at this time.
0 commit comments