Correct max alignment handling throughout the llvm backend

This commit is contained in:
gingerBill
2022-08-24 13:07:41 +01:00
parent 4ba486baa2
commit aeacf3a9d8
6 changed files with 22 additions and 17 deletions

View File

@@ -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;
}