zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2f6a01d0c39542e7d88c9af14e869b820fd156cc (tree)
parent f21c11a7f7fb84db4289a6f735dea012387606d6
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed,  4 May 2022 17:31:12 -0700

stage1: fix `@sizeOf` for 128-bit integer types

Diffstat:
Msrc/stage1/analyze.cpp | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/stage1/analyze.cpp b/src/stage1/analyze.cpp @@ -7686,6 +7686,7 @@ ZigType *make_int_type(CodeGen *g, bool is_signed, uint32_t size_in_bits) { // However for some targets, LLVM incorrectly reports this as 8. // See: https://github.com/ziglang/zig/issues/2987 entry->abi_align = 16; + entry->abi_size = align_forward(entry->abi_size, entry->abi_align); } }