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
+1 -1
View File
@@ -294,7 +294,7 @@ i64 lb_alignof(LLVMTypeRef type) {
i64 elem_size = lb_sizeof(elem);
i64 count = LLVMGetVectorSize(type);
i64 size = count * elem_size;
return gb_clamp(next_pow2(size), 1, build_context.max_align);
return gb_clamp(next_pow2(size), 1, build_context.max_simd_align);
}
}