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
parent 83a3365bfd
commit 87ca304a02
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E

View File

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