diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-01 01:30:44 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-01 01:30:44 +0200 |
| commit | ef6a73c7efa28f45e3c9329f0734589981c9b6a1 (patch) | |
| tree | 1f7505ea8615c3ac35caee97d4c90cff370643e8 /src/llvm_abi.cpp | |
| parent | e3dde8caf808eba70f8ebdd9317f05aa75c3bb5a (diff) | |
fix not setting cc before using it in abi computations
Diffstat (limited to 'src/llvm_abi.cpp')
| -rw-r--r-- | src/llvm_abi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp index 375f1c86a..b2e485d01 100644 --- a/src/llvm_abi.cpp +++ b/src/llvm_abi.cpp @@ -1239,9 +1239,9 @@ namespace lbAbiWasm { gb_internal LB_ABI_INFO(abi_info) { lbFunctionType *ft = gb_alloc_item(permanent_allocator(), lbFunctionType); ft->ctx = c; + ft->calling_convention = calling_convention; 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->calling_convention = calling_convention; return ft; } |