Skip to content

Commit 11efc36

Browse files
committed
[Frontend] Move generic sig verification to end of pipeline
1 parent 01825cb commit 11efc36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,9 @@ static void performEndOfPipelineActions(CompilerInstance &Instance) {
12471247
// Verify the AST for all the modules we've loaded.
12481248
ctx.verifyAllLoadedModules();
12491249

1250+
// Verify generic signatures if we've been asked to.
1251+
verifyGenericSignaturesIfNeeded(Invocation, ctx);
1252+
12501253
// Emit dependencies and index data.
12511254
emitReferenceDependenciesForAllPrimaryInputsIfNeeded(Instance);
12521255
emitIndexData(Instance);
@@ -1345,8 +1348,6 @@ static bool performCompile(CompilerInstance &Instance,
13451348
debugFailWithCrash();
13461349
}
13471350

1348-
verifyGenericSignaturesIfNeeded(Invocation, Context);
1349-
13501351
(void)migrator::updateCodeAndEmitRemapIfNeeded(&Instance);
13511352

13521353
if (Action == FrontendOptions::ActionType::REPL) {

0 commit comments

Comments
 (0)