|
|
@@ -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;
|