From 00c390c9588b41b638c8620ef4c7d20dd6eee494 Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Mon, 23 Feb 2026 11:53:29 +0000 Subject: [PATCH] Dwarf: be even dumber about source locations --- src/link/Dwarf.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/Dwarf.zig b/src/link/Dwarf.zig index 38021aa42f..806a85ff23 100644 --- 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; },