aot_compile_op_call: Stop setting calling convention explicitly (#3140)

The current logic doesn't work for some cases.
cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/3138

It's unclear why we are setting the calling convention explicitly here
at all. In many cases, the default just seems working.
This commit is contained in:
YAMAMOTO Takashi 2024-02-06 14:14:25 +09:00 committed by GitHub
parent cfa90ca44f
commit 6e547baf46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1088,10 +1088,6 @@ aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
goto fail;
}
/* Set calling convention for the call with the func's calling
convention */
LLVMSetInstructionCallConv(value_ret, LLVMGetFunctionCallConv(func));
if (tail_call)
LLVMSetTailCall(value_ret, true);