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...@@ -1451,6 +1451,8 @@ pub fn flushModule(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod
1451 self.error_flags.no_entry_point_found = false;1451 self.error_flags.no_entry_point_found = false;
1452 try self.writeHeader();1452 try self.writeHeader();
1453 }1453 }
1454
1455 assert(!self.imports_count_dirty);
1454}1456}
14551457
1456pub fn getDeclVAddr(self: *Coff, decl_index: Module.Decl.Index, reloc_info: link.File.RelocInfo) !u64 {1458pub fn getDeclVAddr(self: *Coff, decl_index: Module.Decl.Index, reloc_info: link.File.RelocInfo) !u64 {