From 0fcbe7c6b51d3c57f00025009ec683507da45271 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 1 May 2026 12:53:16 -0700 Subject: [PATCH] Remove redundant call. (#7156) Assisted-by: Gemini via Antigravity --- toolchain/check/return.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolchain/check/return.cpp b/toolchain/check/return.cpp index 2492278ab798..775584d52490 100644 --- a/toolchain/check/return.cpp +++ b/toolchain/check/return.cpp @@ -181,8 +181,7 @@ auto BuildReturnWithExpr(Context& context, SemIR::LocId loc_id, expr_id = SemIR::ErrorInst::InstId; break; } - auto call_params = context.inst_blocks().Get( - GetCurrentFunctionForReturn(context).call_params_id); + auto call_params = context.inst_blocks().Get(function.call_params_id); if (function.call_param_ranges.return_size() == 0) { out_param_id = SemIR::InstId::None; break;