diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 054ad0f97d8c3..b0196498eb998 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1495,7 +1495,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args, } if (Args.hasArg(OPT_enable_experimental_move_only) && - (enableLexicalBorrowScopesFlag.getValueOr(false))) { + !enableLexicalBorrowScopesFlag.getValueOr(true)) { // Error if move-only is enabled and lexical borrow scopes--on which it // depends--has been disabled. Diags.diagnose(SourceLoc(), diag::error_invalid_arg_combination, @@ -1505,7 +1505,7 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args, } if (Args.hasArg(OPT_enable_experimental_move_only) && - (enableLexicalLifetimesFlag.getValueOr(false))) { + !enableLexicalLifetimesFlag.getValueOr(true)) { // Error if move-only is enabled and lexical lifetimes--on which it // depends--has been disabled. Diags.diagnose(SourceLoc(), diag::error_invalid_arg_combination,