Coff: fix missing error lazy symbols

This commit is contained in:
Jacob Young 2024-08-16 16:23:04 -04:00
parent e9df5ab7f1
commit ed19ecd115

View File

@ -1694,7 +1694,7 @@ pub fn flushModule(self: *Coff, arena: Allocator, tid: Zcu.PerThread.Id, prog_no
.tid = tid,
};
if (self.lazy_syms.getPtr(.none)) |metadata| {
if (self.lazy_syms.getPtr(.anyerror_type)) |metadata| {
// Most lazy symbols can be updated on first use, but
// anyerror needs to wait for everything to be flushed.
if (metadata.text_state != .unused) self.updateLazySymbolAtom(