mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 06:55:07 +00:00
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:
parent
cfa90ca44f
commit
6e547baf46
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user