Commit 580b6d1fad

mlugg <mlugg@mlugg.co.uk>
2025-09-16 13:35:34
llvm: fix tagged union payload size in debug info
Resolves: #24415
1 parent 496313a
Changed files (1)
src
codegen
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),
                 );