Skip to content

Commit 33204e1

Browse files
author
David Ungar
committed
Fixes
1 parent 599c51f commit 33204e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ namespace swift {
249249
/// Default is in \c ParseLangArgs
250250
///
251251
/// This is a staging flag; eventually it will be removed.
252-
bool EnableASTScopeLookup = true;
252+
bool EnableASTScopeLookup = false;
253253

254254
/// Someday, ASTScopeLookup will supplant lookup in the parser
255255
bool DisableParserLookup = false;

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
327327
Opts.DisableParserLookup |= Args.hasArg(OPT_disable_parser_lookup);
328328
Opts.EnableASTScopeLookup =
329329
Args.hasFlag(options::OPT_enable_astscope_lookup,
330-
options::OPT_disable_astscope_lookup, EnableASTScopeLookup) ||
330+
options::OPT_disable_astscope_lookup, Opts.EnableASTScopeLookup) ||
331331
Opts.DisableParserLookup;
332332
Opts.CompareToASTScopeLookup |= Args.hasArg(OPT_compare_to_astscope_lookup);
333333

0 commit comments

Comments
 (0)