zig

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

commit 87ca304a02807c6534ea6a9ba968c539d51718a9 (tree)
parent 83a3365bfd9dc17067de26b3cb4c9af55a34644e
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 @@ -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), );