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 -2
View File
@@ -90,8 +90,7 @@ auto HandleCallExpr(Context& context, Parse::CallExprId parse_node) -> bool {
auto converted_args_id =
ConvertCallArgs(context, call_expr_parse_node, self_id,
context.params_or_args_stack().PeekCurrentBlockContents(),
return_storage_id,
context.insts().GetParseNode(function_decl_id.inst_id()),
return_storage_id, function_decl_id.inst_id(),
callable.implicit_param_refs_id, callable.param_refs_id);
auto call_inst_id =
context.AddInst({call_expr_parse_node,