diff options
Diffstat (limited to 'src/Zir.zig')
| -rw-r--r-- | src/Zir.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Zir.zig b/src/Zir.zig index 370f996fd5..1ca31755f7 100644 --- a/src/Zir.zig +++ b/src/Zir.zig @@ -2427,7 +2427,7 @@ pub const Inst = struct { operand: Ref, pub fn src(self: @This()) LazySrcLoc { - return .{ .node_offset = self.src_node }; + return LazySrcLoc.nodeOffset(self.src_node); } }, /// Used for unary operators, with a token source location. @@ -2450,7 +2450,7 @@ pub const Inst = struct { payload_index: u32, pub fn src(self: @This()) LazySrcLoc { - return .{ .node_offset = self.src_node }; + return LazySrcLoc.nodeOffset(self.src_node); } }, pl_tok: struct { @@ -2526,7 +2526,7 @@ pub const Inst = struct { bit_count: u16, pub fn src(self: @This()) LazySrcLoc { - return .{ .node_offset = self.src_node }; + return LazySrcLoc.nodeOffset(self.src_node); } }, bool_br: struct { @@ -2545,7 +2545,7 @@ pub const Inst = struct { force_comptime: bool, pub fn src(self: @This()) LazySrcLoc { - return .{ .node_offset = self.src_node }; + return LazySrcLoc.nodeOffset(self.src_node); } }, @"break": struct { @@ -2566,7 +2566,7 @@ pub const Inst = struct { inst: Index, pub fn src(self: @This()) LazySrcLoc { - return .{ .node_offset = self.src_node }; + return LazySrcLoc.nodeOffset(self.src_node); } }, str_op: struct { |
