Skip to content

Commit 43c1ebc

Browse files
authored
Merge pull request #8578 from gottesmm/enable_mandatory_semantic_arc_opts
2 parents d70638c + e2a6a62 commit 43c1ebc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ def emit_pch : Flag<["-"], "emit-pch">,
250250
def enable_sil_ownership : Flag<["-"], "enable-sil-ownership">,
251251
HelpText<"Enable the SIL Ownership Model">;
252252

253-
def enable_mandatory_semantic_arc_opts : Flag<["-"], "enable-mandatory-semantic-arc-opts">,
254-
HelpText<"Enable the mandatory semantic arc optimizer">;
253+
def disable_mandatory_semantic_arc_opts : Flag<["-"], "disable-mandatory-semantic-arc-opts">,
254+
HelpText<"Disable the mandatory semantic arc optimizer">;
255255

256256
def assume_parsing_unqualified_ownership_sil : Flag<["-"], "assume-parsing-unqualified-ownership-sil">,
257257
HelpText<"Assume unqualified SIL ownership when parsing SIL">;

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
12971297
Opts.AssumeUnqualifiedOwnershipWhenParsing
12981298
|= Args.hasArg(OPT_assume_parsing_unqualified_ownership_sil);
12991299
Opts.EnableMandatorySemanticARCOpts |=
1300-
Args.hasArg(OPT_enable_mandatory_semantic_arc_opts);
1300+
!Args.hasArg(OPT_disable_mandatory_semantic_arc_opts);
13011301

13021302
if (Args.hasArg(OPT_debug_on_sil)) {
13031303
// Derive the name of the SIL file for debugging from

0 commit comments

Comments
 (0)