authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-09-16 12:35:34+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-09-16 18:55:19+01:00
log580b6d1faddd0f2ef0c4e00fb042665b2cbdfa24
treebdef60d2241c7048780407e0a225b14aa3ff97aa
parent496313a1bd4e8a4663ea99942d179a52b57e04e6

llvm: fix tagged union payload size in debug info

Resolves: #24415

1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen/llvm.zig+1-1
...@@ -2521,7 +2521,7 @@ pub const Object = struct {...@@ -2521,7 +2521,7 @@ pub const Object = struct {
2521 o.debug_compile_unit, // Scope2521 o.debug_compile_unit, // Scope
2522 0, // Line2522 0, // Line
2523 .none, // Underlying type2523 .none, // Underlying type
2524 ty.abiSize(zcu) * 8,2524 layout.payload_size * 8,
2525 (ty.abiAlignment(zcu).toByteUnits() orelse 0) * 8,2525 (ty.abiAlignment(zcu).toByteUnits() orelse 0) * 8,
2526 try o.builder.metadataTuple(fields.items),2526 try o.builder.metadataTuple(fields.items),
2527 );2527 );