| ... | @@ -2828,8 +2828,10 @@ fn analyzeInstCall(self: *Module, scope: *Scope, inst: *zir.Inst.Call) InnerErro | ... | @@ -2828,8 +2828,10 @@ fn analyzeInstCall(self: *Module, scope: *Scope, inst: *zir.Inst.Call) InnerErro |
| 2828 | casted_args[i] = try self.coerce(scope, fn_param_types[i], uncasted_arg); | 2828 | casted_args[i] = try self.coerce(scope, fn_param_types[i], uncasted_arg); |
| 2829 | } | 2829 | } |
| 2830 | | 2830 | |
| | 2831 | const ret_type = func.ty.fnReturnType(); |
| | 2832 | |
| 2831 | const b = try self.requireRuntimeBlock(scope, inst.base.src); | 2833 | const b = try self.requireRuntimeBlock(scope, inst.base.src); |
| 2832 | return self.addCall(b, inst.base.src, Type.initTag(.void), func, casted_args); | 2834 | return self.addCall(b, inst.base.src, ret_type, func, casted_args); |
| 2833 | } | 2835 | } |
| 2834 | | 2836 | |
| 2835 | fn analyzeInstFn(self: *Module, scope: *Scope, fn_inst: *zir.Inst.Fn) InnerError!*Inst { | 2837 | fn analyzeInstFn(self: *Module, scope: *Scope, fn_inst: *zir.Inst.Fn) InnerError!*Inst { |