| ... | @@ -13028,6 +13028,9 @@ static IrInstGen *ir_const_fn(IrAnalyze *ira, IrInst *source_instr, ZigFn *fn_en | ... | @@ -13028,6 +13028,9 @@ static IrInstGen *ir_const_fn(IrAnalyze *ira, IrInst *source_instr, ZigFn *fn_en |
| 13028 | static IrInstGen *ir_const_bound_fn(IrAnalyze *ira, IrInst *src_inst, ZigFn *fn_entry, IrInstGen *first_arg, | 13028 | static IrInstGen *ir_const_bound_fn(IrAnalyze *ira, IrInst *src_inst, ZigFn *fn_entry, IrInstGen *first_arg, |
| 13029 | IrInst *first_arg_src) | 13029 | IrInst *first_arg_src) |
| 13030 | { | 13030 | { |
| | 13031 | // This is unfortunately required to avoid improperly freeing first_arg_src |
| | 13032 | ira_ref(ira); |
| | 13033 | |
| 13031 | IrInstGen *result = ir_const(ira, src_inst, get_bound_fn_type(ira->codegen, fn_entry)); | 13034 | IrInstGen *result = ir_const(ira, src_inst, get_bound_fn_type(ira->codegen, fn_entry)); |
| 13032 | result->value->data.x_bound_fn.fn = fn_entry; | 13035 | result->value->data.x_bound_fn.fn = fn_entry; |
| 13033 | result->value->data.x_bound_fn.first_arg = first_arg; | 13036 | result->value->data.x_bound_fn.first_arg = first_arg; |