diff options
| author | gingerBill <bill@gingerbill.org> | 2022-08-24 13:07:41 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-08-24 13:07:41 +0100 |
| commit | aeacf3a9d8a1f6aa36d5c1315e1d8529bb985847 (patch) | |
| tree | 935f950fa5dd1690dc57df3001410928bd5d1e3a /src/llvm_backend_stmt.cpp | |
| parent | 4ba486baa2d1414393dff0d7ddaff777f4592cbd (diff) | |
Correct max alignment handling throughout the llvm backend
Diffstat (limited to 'src/llvm_backend_stmt.cpp')
| -rw-r--r-- | src/llvm_backend_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp index e55fae3a7..175c4c537 100644 --- a/src/llvm_backend_stmt.cpp +++ b/src/llvm_backend_stmt.cpp @@ -1796,7 +1796,7 @@ void lb_build_assign_stmt_array(lbProcedure *p, TokenKind op, lbAddr const &lhs, lbValue rhs = lb_emit_conv(p, value, lhs_type); - bool inline_array_arith = type_size_of(array_type) <= build_context.max_align; + bool inline_array_arith = lb_can_try_to_inline_array_arith(array_type); if (lhs.kind == lbAddr_Swizzle) { |