Skip to content

Commit 7e7c799

Browse files
committed
[Frontend] Don't perform additional parsing for -verify
Given `-verify` is used for testing, ideally it shouldn't exhibit different behaviour to an equivalent invocation without it.
1 parent 222b9de commit 7e7c799

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,8 +1263,7 @@ static bool performCompile(CompilerInstance &Instance,
12631263

12641264
if (FrontendOptions::shouldActionOnlyParse(Action)) {
12651265
bool ParseDelayedDeclListsOnEnd =
1266-
Action == FrontendOptions::ActionType::DumpParse ||
1267-
Invocation.getDiagnosticOptions().VerifyMode != DiagnosticOptions::NoVerify;
1266+
Action == FrontendOptions::ActionType::DumpParse;
12681267
Instance.performParseOnly(/*EvaluateConditionals*/
12691268
Action == FrontendOptions::ActionType::EmitImportedModules,
12701269
ParseDelayedDeclListsOnEnd);

0 commit comments

Comments
 (0)