Support passing an InstId for check diagnostics. (#3597)

This commit is contained in:
Jon Ross-Perkins
2024-01-12 22:09:32 +00:00
committed by GitHub
parent f197219c10
commit f5e9158fa7
10 changed files with 76 additions and 48 deletions
+1 -2
View File
@@ -224,8 +224,7 @@ auto HandleFunctionDefinitionStart(Context& context,
context.emitter()
.Build(parse_node, FunctionRedefinition,
context.names().GetFormatted(function.name_id).str())
.Note(context.insts().GetParseNode(function.definition_id),
FunctionPreviousDefinition)
.Note(function.definition_id, FunctionPreviousDefinition)
.Emit();
} else {
function.definition_id = decl_id;