mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 16:24:51 +00:00
link.Dwarf: i just fixed error union values, s'nothin' else to it
This commit is contained in:
parent
604fb3001d
commit
b578cca022
@ -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| {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user