From 87ca304a02807c6534ea6a9ba968c539d51718a9 Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 16 Sep 2025 12:35:34 +0100 Subject: [PATCH] llvm: fix tagged union payload size in debug info Resolves: #24415 --- src/codegen/llvm.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 1b12add122..bd2c7bd022 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -2508,7 +2508,7 @@ pub const Object = struct { o.debug_compile_unit, // Scope 0, // Line .none, // Underlying type - ty.abiSize(zcu) * 8, + layout.payload_size * 8, (ty.abiAlignment(zcu).toByteUnits() orelse 0) * 8, try o.builder.metadataTuple(fields.items), );