zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 160da8d6a4b82fa54f33e15025aaccc6f36f896f (tree)
parent 7bfe96fddcdc27db58a9a758b9e9aed2ed3370cc
Author: Matthew Lugg <mlugg@mlugg.co.uk>
Date:   Mon, 23 Feb 2026 11:53:29 +0000

Dwarf: be even dumber about source locations

Diffstat:
Msrc/link/Dwarf.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/link/Dwarf.zig b/src/link/Dwarf.zig @@ -3461,7 +3461,7 @@ fn updateConstInner(dwarf: *Dwarf, pt: Zcu.PerThread, debug_const_index: link.Co // without trying to tie them to a bogus source location. const src_loc: Zcu.LazySrcLoc = .{ .base_node_inst = inst: { - const mod_root_file_index = zcu.module_roots.get(dwarf.getUnitModule(unit)).?.unwrap().?; + const mod_root_file_index = zcu.module_roots.get(zcu.std_mod).?.unwrap().?; const mod_root_type_index = zcu.fileRootType(mod_root_file_index); break :inst ip.loadStructType(mod_root_type_index).zir_index; },