authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-02-23 11:53:29+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-10 10:26:13+00:00
log160da8d6a4b82fa54f33e15025aaccc6f36f896f
tree41c5612ef44c586416b129dcbd14e3d24d3b932e
parent7bfe96fddcdc27db58a9a758b9e9aed2ed3370cc
signaturelock-open Commit is signed but in an unrecognized format.

Dwarf: be even dumber about source locations


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

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