aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm/bindings.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-04-30 19:51:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-05-08 19:37:29 -0700
commit200e06b2399d605c8d183e55649e39ba2c6b56f6 (patch)
tree9bdd2acf67740b9de522545abb8684e602181d22 /src/codegen/llvm/bindings.zig
parent927f24a6ff4af55f79df54c392b906413eae1459 (diff)
downloadzig-200e06b2399d605c8d183e55649e39ba2c6b56f6.tar.gz
zig-200e06b2399d605c8d183e55649e39ba2c6b56f6.zip
update maxIntAlignment for x86 to 16
LLVMABIAlignmentOfType(i128) reports 16 on this target, however the C ABI uses align(4). Clang in LLVM 17 does this: %struct.foo = type { i32, i128 } Clang in LLVM 18 does this: %struct.foo = type <{ i32, i128 }> Clang is working around the 16-byte alignment to use align(4) for the C ABI by making the LLVM struct packed.
Diffstat (limited to 'src/codegen/llvm/bindings.zig')
0 files changed, 0 insertions, 0 deletions