Browse Source

Fix wasm abi

gingerBill 1 year ago
parent
commit
6588fe35b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/llvm_abi.cpp

+ 1 - 1
src/llvm_abi.cpp

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