Преглед изворни кода

Change the order of the args and ret for Arm64 ABI

gingerBill пре 2 година
родитељ
комит
81037b3091
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/llvm_abi.cpp

+ 1 - 1
src/llvm_abi.cpp

@@ -987,8 +987,8 @@ namespace lbAbiArm64 {
 	LB_ABI_INFO(abi_info) {
 	LB_ABI_INFO(abi_info) {
 		lbFunctionType *ft = gb_alloc_item(permanent_allocator(), lbFunctionType);
 		lbFunctionType *ft = gb_alloc_item(permanent_allocator(), lbFunctionType);
 		ft->ctx = c;
 		ft->ctx = c;
+		ft->args = compute_arg_types(c, arg_types, arg_count);
 		ft->ret = compute_return_type(ft, c, return_type, return_is_defined, return_is_tuple);
 		ft->ret = compute_return_type(ft, c, return_type, return_is_defined, return_is_tuple);
-		ft -> args = compute_arg_types(c, arg_types, arg_count);
 		ft->calling_convention = calling_convention;
 		ft->calling_convention = calling_convention;
 		return ft;
 		return ft;
 	}
 	}