aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-08-24 13:07:41 +0100
committergingerBill <bill@gingerbill.org>2022-08-24 13:07:41 +0100
commitaeacf3a9d8a1f6aa36d5c1315e1d8529bb985847 (patch)
tree935f950fa5dd1690dc57df3001410928bd5d1e3a /src/types.cpp
parent4ba486baa2d1414393dff0d7ddaff777f4592cbd (diff)
Correct max alignment handling throughout the llvm backend
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index aa4a3c4a1..b7cb4dd2c 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1428,7 +1428,7 @@ i64 matrix_align_of(Type *t, struct TypePath *tp) {
}
GB_ASSERT(min_alignment >= elem_align);
- i64 align = gb_min(min_alignment, build_context.max_align);
+ i64 align = gb_min(min_alignment, build_context.max_simd_align);
return align;
}