mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[semantic-arc] Add the -enable-sil-ownership flag and propagate its value to SILOptions.EnableSILOwnershipModel.
This will allow for semantic arc work to remain behind a flag and not affect other in tree developers. More importantly it enables for bots to be setup with this flag enabled. rdar://28685236
This commit is contained in:
@@ -1132,6 +1132,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
Args.hasArg(OPT_enable_guaranteed_closure_contexts);
|
||||
Opts.DisableSILPartialApply |=
|
||||
Args.hasArg(OPT_disable_sil_partial_apply);
|
||||
Opts.EnableSILOwnership |= Args.hasArg(OPT_enable_sil_ownership);
|
||||
|
||||
if (Args.hasArg(OPT_debug_on_sil)) {
|
||||
// Derive the name of the SIL file for debugging from
|
||||
|
||||
Reference in New Issue
Block a user