From ae57f6fd07d1830f9179222207671d30d9f9d707 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Mon, 28 Oct 2024 20:39:37 +0100 Subject: [PATCH] dwarf: flush wip_nav after emitting anyerror type info This caused a missing reference for u16 to not be emitted. Triggered after removing something from start.zig which transitively added u16 to the module. --- src/link/Dwarf.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/link/Dwarf.zig b/src/link/Dwarf.zig index d428377c3b..41e9adb2c3 100644 --- a/src/link/Dwarf.zig +++ b/src/link/Dwarf.zig @@ -3845,6 +3845,7 @@ pub fn flushModule(dwarf: *Dwarf, pt: Zcu.PerThread) FlushError!void { } if (global_error_set_names.len > 0) try uleb128(diw, @intFromEnum(AbbrevCode.null)); try dwarf.debug_info.section.replaceEntry(wip_nav.unit, wip_nav.entry, dwarf, wip_nav.debug_info.items); + try wip_nav.flush(.unneeded); } {