From e7502d1474724335116751b87a2b0b0f78b43299 Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Wed, 23 Sep 2026 21:14:09 +0100 Subject: [PATCH] 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. --- src/link.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/link.zig b/src/link.zig index 62751df5dd2d619f09764d5dd3aa47ba24aa9840..c6d077c7772a51836a9d331f0120299745f8b542 100644 --- a/src/link.zig +++ b/src/link.zig @@ -964,6 +964,7 @@ pub const File = struct { } pub fn updateErrorData(base: *File, pt: Zcu.PerThread) Error!void { + if (base.comp.zcu.?.llvm_object != null) return; switch (base.tag) { else => {}, inline .elf2, .coff, .macho2 => |tag| { -- 2.54.0