authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-03-28 14:17:12+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-03-28 14:17:12+02:00
log70838d34aa581c9723d39592329827cf671cf0e9
treea80d827f780ce263d1816a60583268fc6c3ec89a
parentdb877df8eb1831891fc1f3cb6dab1503868b5732

coff: assert the imports table is not dirty


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

src/link/Coff.zig+2
......@@ -1451,6 +1451,8 @@ pub fn flushModule(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod
14511451 self.error_flags.no_entry_point_found = false;
14521452 try self.writeHeader();
14531453 }
1454
1455 assert(!self.imports_count_dirty);
14541456}
14551457
14561458pub fn getDeclVAddr(self: *Coff, decl_index: Module.Decl.Index, reloc_info: link.File.RelocInfo) !u64 {