Skip to content

Commit a127d78

Browse files
author
David Ungar
committed
Keep using parser lookup till we try to disable it
1 parent 3afd6a7 commit a127d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ASTGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ MagicIdentifierLiteralExpr::Kind ASTGen::getMagicIdentifierLiteralKind(tok Kind)
550550
}
551551

552552
ValueDecl *ASTGen::lookupInScope(DeclName Name) {
553-
return Context.LangOpts.EnableASTScopeLookup
553+
return Context.LangOpts.EnableASTScopeLookup && Context.LangOpts.DisableParserLookup
554554
? nullptr
555555
: (*ParserState)->getScopeInfo().lookupValueName(Name);
556556
}

0 commit comments

Comments
 (0)