Fix typo in wasm64p32 abi

This commit is contained in:
gingerBill
2023-06-07 00:53:31 +01:00
parent 204924927a
commit 295cfc905c

View File

@@ -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);
}