llvm: fix tagged union payload size in debug info

Resolves: #24415
This commit is contained in:
mlugg 2025-09-16 12:35:34 +01:00 committed by Matthew Lugg
parent 496313a1bd
commit 580b6d1fad

View File

@ -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),
);