mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 13:41:06 +01:00
Reduce a few cases of retrieving the parse node for conditional diagnostics. (#3620)
This commit is contained in:
@@ -258,7 +258,7 @@ auto HandleFunctionDefinitionStart(Context& context,
|
||||
"Parameter has incomplete type `{0}` in function definition.",
|
||||
std::string);
|
||||
return context.emitter().Build(
|
||||
context.insts().GetParseNode(param_id), IncompleteTypeInFunctionParam,
|
||||
param_id, IncompleteTypeInFunctionParam,
|
||||
context.sem_ir().StringifyType(param.type_id()));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user