mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
fix not setting cc before using it in abi computations
This commit is contained in:
+1
-1
@@ -1239,9 +1239,9 @@ namespace lbAbiWasm {
|
|||||||
gb_internal LB_ABI_INFO(abi_info) {
|
gb_internal 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->calling_convention = calling_convention;
|
||||||
ft->args = compute_arg_types(c, arg_types, arg_count, calling_convention, original_type);
|
ft->args = compute_arg_types(c, arg_types, arg_count, calling_convention, original_type);
|
||||||
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->calling_convention = calling_convention;
|
|
||||||
return ft;
|
return ft;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user