Fix general IR parameter case

This commit is contained in:
gingerBill
2019-10-10 20:52:07 +01:00
parent 5b52fed268
commit abfa894566
2 changed files with 13 additions and 8 deletions
+9 -7
View File
@@ -2108,14 +2108,16 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type, ProcCall
if (8*size > 16) {
new_type = alloc_type_pointer(original_type);
} else if (build_context.ODIN_ARCH == "amd64") {
// NOTE(bill): System V AMD64 ABI
if (bt->Struct.is_raw_union) {
// TODO(bill): Handle raw union correctly for
break;
}
if (is_type_struct(bt)) {
// NOTE(bill): System V AMD64 ABI
if (bt->Struct.is_raw_union) {
// TODO(bill): Handle raw union correctly for
break;
}
new_type = handle_struct_system_v_amd64_abi_type(bt);
return new_type;
new_type = handle_struct_system_v_amd64_abi_type(bt);
return new_type;
}
}
break;