aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-12-21 23:56:34 +0000
committergingerBill <bill@gingerbill.org>2022-12-21 23:56:34 +0000
commit81037b30919340b4d2d0cf1304fbf8fde0591c1f (patch)
tree201d9de25dfd47a0103c996ddf6a46bd961d9d52 /src
parent6f0bad816e22f242c3fec7433d66e5ef71d52d00 (diff)
Change the order of the args and ret for Arm64 ABI
Diffstat (limited to 'src')
-rw-r--r--src/llvm_abi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp
index 166fcb3ee..2cabc2dc7 100644
--- a/src/llvm_abi.cpp
+++ b/src/llvm_abi.cpp
@@ -987,8 +987,8 @@ namespace lbAbiArm64 {
LB_ABI_INFO(abi_info) {
lbFunctionType *ft = gb_alloc_item(permanent_allocator(), lbFunctionType);
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 -> args = compute_arg_types(c, arg_types, arg_count);
ft->calling_convention = calling_convention;
return ft;
}