Reduce a few cases of retrieving the parse node for conditional diagnostics. (#3620)

This commit is contained in:
Jon Ross-Perkins
2024-01-19 03:01:24 +00:00
committed by GitHub
parent b138c90c9e
commit 9e3c4a3ef1
4 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -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()));
});