Browse Source

Fix typo in wasm64p32 abi

gingerBill 2 years ago
parent
commit
295cfc905c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/llvm_abi.cpp

+ 1 - 1
src/llvm_abi.cpp

@@ -1324,7 +1324,7 @@ namespace lbAbiWasm {
 				LLVMStructGetTypeAtIndex(type, 2)
 			};
 			LLVMTypeRef new_type = LLVMStructTypeInContext(c, types, gb_count_of(types), false);
-			return lb_arg_type_direct(new_type, type, nullptr, nullptr);
+			return lb_arg_type_direct(type, new_type, nullptr, nullptr);
 		} else {
 			return is_struct(c, type, calling_convention);
 		}