commit b578cca022f4c9ce94439e2ee795639b3a23c8f5 (tree)
parent 604fb3001d6480d1687ddeb988c64c8028d5e55a
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date: Mon, 15 Sep 2025 18:23:14 +0100
link.Dwarf: i just fixed error union values, s'nothin' else to it
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/link/Dwarf.zig b/src/link/Dwarf.zig
@@ -4064,6 +4064,7 @@ fn updateLazyValue(
},
.error_union => |error_union| {
try wip_nav.abbrevCode(.aggregate_comptime_value);
+ try wip_nav.refType(.fromInterned(error_union.ty));
var err_buf: [4]u8 = undefined;
const err_bytes = err_buf[0 .. std.math.divCeil(u17, zcu.errorSetBits(), 8) catch unreachable];
dwarf.writeInt(err_bytes, switch (error_union.val) {
@@ -4101,7 +4102,6 @@ fn updateLazyValue(
try diw.writeUleb128(err_bytes.len);
try diw.writeAll(err_bytes);
}
- try wip_nav.refType(.fromInterned(error_union.ty));
try diw.writeUleb128(@intFromEnum(AbbrevCode.null));
},
.enum_literal => |enum_literal| {