mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:50:14 +01:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user