mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
Fix #2561 - ARM64 ABI bug for homogenous structs with more than 4 elements
This commit is contained in:
+5
-1
@@ -1179,7 +1179,11 @@ namespace lbAbiArm64 {
|
|||||||
if (is_register(type)) {
|
if (is_register(type)) {
|
||||||
args[i] = non_struct(c, type);
|
args[i] = non_struct(c, type);
|
||||||
} else if (is_homogenous_aggregate(c, type, &homo_base_type, &homo_member_count)) {
|
} else if (is_homogenous_aggregate(c, type, &homo_base_type, &homo_member_count)) {
|
||||||
args[i] = lb_arg_type_direct(type, LLVMArrayType(homo_base_type, homo_member_count), nullptr, nullptr);
|
if (is_homogenous_aggregate_small_enough(homo_base_type, homo_member_count)) {
|
||||||
|
args[i] = lb_arg_type_direct(type, LLVMArrayType(homo_base_type, homo_member_count), nullptr, nullptr);
|
||||||
|
} else {
|
||||||
|
args[i] = lb_arg_type_indirect(type, nullptr);;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
i64 size = lb_sizeof(type);
|
i64 size = lb_sizeof(type);
|
||||||
if (size <= 16) {
|
if (size <= 16) {
|
||||||
|
|||||||
Reference in New Issue
Block a user