authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-09-23 21:14:09+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-09-26 18:21:21+01:00
log2ce057addfa2d53434f9dfa58bf4c62d2b6a308e
treebb8c5a5c6dc349d5fda2cfcb8312abacd8bb6468
parent37ba5b8812a1add16e44f658d2aa7c5551aacd47
signature Commit is signed but in an unrecognized format.

link: don't call `updateErrorData` when using LLVM

This function is only applicable when a self-hosted backend is being used to codegen the ZCU.

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

src/link.zig+1
......@@ -964,6 +964,7 @@ pub const File = struct {
964964 }
965965
966966 pub fn updateErrorData(base: *File, pt: Zcu.PerThread) Error!void {
967 if (base.comp.zcu.?.llvm_object != null) return;
967968 switch (base.tag) {
968969 else => {},
969970 inline .elf2, .coff, .macho2 => |tag| {