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

This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-01-19 03:01:24 +00:00
1 parent b138c90c9e
commit 9e3c4a3ef1
4 files changed
+9 -13

No files matched your search

+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()));
});