Fix wasm abi

This commit is contained in:
gingerBill
2024-03-26 16:47:29 +00:00
parent fa84272d5e
commit 6588fe35b3

View File

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