zig

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

commit 88ada2121ffd13a77ef8d38e7cf10509eb45853a (tree)
parent 708894cf9903bab2e9b0dde0b609a6cc7cc55ffd
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed,  1 May 2024 17:57:01 -0700

LLVM: fix x86 and x86_64 datalayout string calculation

now it matches clang again

Diffstat:
Msrc/codegen/llvm.zig | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig @@ -671,6 +671,20 @@ const DataLayoutBuilder = struct { abi = size; force_abi = size == 64; }, + .x86 => switch (size) { + 128 => { + abi = size; + pref = size; + }, + else => {}, + }, + .x86_64 => switch (size) { + 64, 128 => { + abi = size; + pref = size; + }, + else => {}, + }, else => {}, } },