Skip to content

Commit b09a67c

Browse files
committed
x86_64/riscv64: fmtAir should write to the correct writer
1 parent f87c825 commit b09a67c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/arch/riscv64/CodeGen.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ fn formatAir(
10151015
_: std.fmt.FormatOptions,
10161016
writer: anytype,
10171017
) @TypeOf(writer).Error!void {
1018-
data.func.air.dumpInst(data.inst, data.func.pt, data.func.liveness);
1018+
data.func.air.writeInst(writer, data.inst, data.func.pt, data.func.liveness);
10191019
}
10201020
fn fmtAir(func: *Func, inst: Air.Inst.Index) std.fmt.Formatter(formatAir) {
10211021
return .{ .data = .{ .func = func, .inst = inst } };

src/arch/x86_64/CodeGen.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ fn formatAir(
11221122
_: std.fmt.FormatOptions,
11231123
writer: anytype,
11241124
) @TypeOf(writer).Error!void {
1125-
data.self.air.dumpInst(data.inst, data.self.pt, data.self.liveness);
1125+
data.self.air.writeInst(writer, data.inst, data.self.pt, data.self.liveness);
11261126
}
11271127
fn fmtAir(self: *CodeGen, inst: Air.Inst.Index) std.fmt.Formatter(formatAir) {
11281128
return .{ .data = .{ .self = self, .inst = inst } };

0 commit comments

Comments
 (0)