| ... | @@ -400,9 +400,13 @@ const Writer = struct { | ... | @@ -400,9 +400,13 @@ const Writer = struct { |
| 400 | } | 400 | } |
| 401 | | 401 | |
| 402 | fn writeTyPlBin(w: *Writer, s: anytype, inst: Air.Inst.Index) @TypeOf(s).Error!void { | 402 | fn writeTyPlBin(w: *Writer, s: anytype, inst: Air.Inst.Index) @TypeOf(s).Error!void { |
| 403 | const ty_pl = w.air.instructions.items(.data)[inst].ty_pl; | 403 | const data = w.air.instructions.items(.data); |
| | 404 | const ty_pl = data[inst].ty_pl; |
| 404 | const extra = w.air.extraData(Air.Bin, ty_pl.payload).data; | 405 | const extra = w.air.extraData(Air.Bin, ty_pl.payload).data; |
| 405 | | 406 | |
| | 407 | const inst_ty = w.air.getRefType(data[inst].ty_pl.ty); |
| | 408 | try w.writeType(s, inst_ty); |
| | 409 | try s.writeAll(", "); |
| 406 | try w.writeOperand(s, inst, 0, extra.lhs); | 410 | try w.writeOperand(s, inst, 0, extra.lhs); |
| 407 | try s.writeAll(", "); | 411 | try s.writeAll(", "); |
| 408 | try w.writeOperand(s, inst, 1, extra.rhs); | 412 | try w.writeOperand(s, inst, 1, extra.rhs); |