zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 580b6d1faddd0f2ef0c4e00fb042665b2cbdfa24 (tree)
parent 496313a1bd4e8a4663ea99942d179a52b57e04e6
Author: mlugg <mlugg@mlugg.co.uk>
Date:   Tue, 16 Sep 2025 12:35:34 +0100

llvm: fix tagged union payload size in debug info

Resolves: #24415

Diffstat:
Msrc/codegen/llvm.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig @@ -2521,7 +2521,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), );