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-27 10:19:55+01:00
loge7502d1474724335116751b87a2b0b0f78b43299
tree834eba26e2f26fedc1beb21053f79fd5b4ca0923
parent4019d010007294de58acd5370cc879f14d40e506
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 {...@@ -964,6 +964,7 @@ pub const File = struct {
964 }964 }
965965
966 pub fn updateErrorData(base: *File, pt: Zcu.PerThread) Error!void {966 pub fn updateErrorData(base: *File, pt: Zcu.PerThread) Error!void {
967 if (base.comp.zcu.?.llvm_object != null) return;
967 switch (base.tag) {968 switch (base.tag) {
968 else => {},969 else => {},
969 inline .elf2, .coff, .macho2 => |tag| {970 inline .elf2, .coff, .macho2 => |tag| {