diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-04 18:39:41 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-04 18:39:41 +0200 |
| commit | 31407d9b1b8d0d35ba53a0245d86ed37007a28e2 (patch) | |
| tree | b16d5359c79c1e263a80b7522f5207d0995346d7 /src/llvm_abi.cpp | |
| parent | 5fe0788cffcbcfd153ea23954b5a11a853ef50b4 (diff) | |
fix 128 bit int alignment on arm64
Fixes #2403
Diffstat (limited to 'src/llvm_abi.cpp')
| -rw-r--r-- | src/llvm_abi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp index 724e4e35a..507881f99 100644 --- a/src/llvm_abi.cpp +++ b/src/llvm_abi.cpp @@ -275,7 +275,7 @@ gb_internal i64 lb_alignof(LLVMTypeRef type) { case LLVMIntegerTypeKind: { unsigned w = LLVMGetIntTypeWidth(type); - return gb_clamp((w + 7)/8, 1, build_context.ptr_size); + return gb_clamp((w + 7)/8, 1, build_context.max_align); } case LLVMHalfTypeKind: return 2; |