authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2025-09-15 18:23:14+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-09-30 13:44:54+01:00
logb578cca022f4c9ce94439e2ee795639b3a23c8f5
tree7cc429b9c17e2fd598103c1750e40e98872af598
parent604fb3001d6480d1687ddeb988c64c8028d5e55a
signaturelock-open Commit is signed but in an unrecognized format.

link.Dwarf: i just fixed error union values, s'nothin' else to it


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Dwarf.zig+1-1
...@@ -4064,6 +4064,7 @@ fn updateLazyValue(...@@ -4064,6 +4064,7 @@ fn updateLazyValue(
4064 },4064 },
4065 .error_union => |error_union| {4065 .error_union => |error_union| {
4066 try wip_nav.abbrevCode(.aggregate_comptime_value);4066 try wip_nav.abbrevCode(.aggregate_comptime_value);
4067 try wip_nav.refType(.fromInterned(error_union.ty));
4067 var err_buf: [4]u8 = undefined;4068 var err_buf: [4]u8 = undefined;
4068 const err_bytes = err_buf[0 .. std.math.divCeil(u17, zcu.errorSetBits(), 8) catch unreachable];4069 const err_bytes = err_buf[0 .. std.math.divCeil(u17, zcu.errorSetBits(), 8) catch unreachable];
4069 dwarf.writeInt(err_bytes, switch (error_union.val) {4070 dwarf.writeInt(err_bytes, switch (error_union.val) {
...@@ -4101,7 +4102,6 @@ fn updateLazyValue(...@@ -4101,7 +4102,6 @@ fn updateLazyValue(
4101 try diw.writeUleb128(err_bytes.len);4102 try diw.writeUleb128(err_bytes.len);
4102 try diw.writeAll(err_bytes);4103 try diw.writeAll(err_bytes);
4103 }4104 }
4104 try wip_nav.refType(.fromInterned(error_union.ty));
4105 try diw.writeUleb128(@intFromEnum(AbbrevCode.null));4105 try diw.writeUleb128(@intFromEnum(AbbrevCode.null));
4106 },4106 },
4107 .enum_literal => |enum_literal| {4107 .enum_literal => |enum_literal| {