Skip to content

Commit 36d6a34

Browse files
authored
Merge pull request #40535 from nate-chandler/lexical_lifetimes/allow-flags-compatible-with-move-only-to-be-passed
2 parents 3425e47 + 0cee5b2 commit 36d6a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
15031503
}
15041504

15051505
if (Args.hasArg(OPT_enable_experimental_move_only) &&
1506-
(enableLexicalBorrowScopesFlag.getValueOr(false))) {
1506+
!enableLexicalBorrowScopesFlag.getValueOr(true)) {
15071507
// Error if move-only is enabled and lexical borrow scopes--on which it
15081508
// depends--has been disabled.
15091509
Diags.diagnose(SourceLoc(), diag::error_invalid_arg_combination,
@@ -1513,7 +1513,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
15131513
}
15141514

15151515
if (Args.hasArg(OPT_enable_experimental_move_only) &&
1516-
(enableLexicalLifetimesFlag.getValueOr(false))) {
1516+
!enableLexicalLifetimesFlag.getValueOr(true)) {
15171517
// Error if move-only is enabled and lexical lifetimes--on which it
15181518
// depends--has been disabled.
15191519
Diags.diagnose(SourceLoc(), diag::error_invalid_arg_combination,

0 commit comments

Comments
 (0)