aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-09-16 12:35:34 +0100
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-09-16 18:55:19 +0100
commit580b6d1faddd0f2ef0c4e00fb042665b2cbdfa24 (patch)
treebdef60d2241c7048780407e0a225b14aa3ff97aa /src/codegen
parent496313a1bd4e8a4663ea99942d179a52b57e04e6 (diff)
downloadzig-580b6d1faddd0f2ef0c4e00fb042665b2cbdfa24.tar.gz
zig-580b6d1faddd0f2ef0c4e00fb042665b2cbdfa24.zip
llvm: fix tagged union payload size in debug info
Resolves: #24415
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 9435087edc..ebdcdb6bcb 100644
--- a/src/codegen/llvm.zig
+++ b/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),
);