mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 21:21:19 +00:00
Support passing an InstId for check diagnostics. (#3597)
This commit is contained in:
1 parent
f197219c10
commit
f5e9158fa7
10 files changed
+76
-48
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user