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

This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-01-12 22:09:32 +00:00
1 parent f197219c10
commit f5e9158fa7
10 files changed
+76 -48

No files matched your search

+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;