diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-12-21 14:33:02 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-12-27 15:13:14 +0200 |
| commit | 54160e7f6aecb4628df633ceaef4c6d956429a3d (patch) | |
| tree | 8b523c4dad676be508f680fa8840fa3430a14191 /src/print_zir.zig | |
| parent | af9a9a13747b1e7007e29ff4f76e700f5bd7f7cf (diff) | |
| download | zig-54160e7f6aecb4628df633ceaef4c6d956429a3d.tar.gz zig-54160e7f6aecb4628df633ceaef4c6d956429a3d.zip | |
Sema: make overflow arithmetic builtins return tuples
Diffstat (limited to 'src/print_zir.zig')
| -rw-r--r-- | src/print_zir.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/print_zir.zig b/src/print_zir.zig index bc4dc84075..49c97a5bc7 100644 --- a/src/print_zir.zig +++ b/src/print_zir.zig @@ -185,7 +185,6 @@ const Writer = struct { .size_of, .bit_size_of, .typeof_log2_int_type, - .log2_int_type, .ptr_to_int, .compile_error, .set_eval_branch_quota, @@ -230,7 +229,6 @@ const Writer = struct { .validate_struct_init_ty, .make_ptr_const, .validate_deref, - .overflow_arithmetic_ptr, .check_comptime_control_flow, => try self.writeUnNode(stream, inst), @@ -1153,14 +1151,12 @@ const Writer = struct { } fn writeOverflowArithmetic(self: *Writer, stream: anytype, extended: Zir.Inst.Extended.InstData) !void { - const extra = self.code.extraData(Zir.Inst.OverflowArithmetic, extended.operand).data; + const extra = self.code.extraData(Zir.Inst.BinNode, extended.operand).data; const src = LazySrcLoc.nodeOffset(extra.node); try self.writeInstRef(stream, extra.lhs); try stream.writeAll(", "); try self.writeInstRef(stream, extra.rhs); - try stream.writeAll(", "); - try self.writeInstRef(stream, extra.ptr); try stream.writeAll(")) "); try self.writeSrc(stream, src); } |
