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:
@ -1088,10 +1088,6 @@ aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set calling convention for the call with the func's calling
|
|
||||||
convention */
|
|
||||||
LLVMSetInstructionCallConv(value_ret, LLVMGetFunctionCallConv(func));
|
|
||||||
|
|
||||||
if (tail_call)
|
if (tail_call)
|
||||||
LLVMSetTailCall(value_ret, true);
|
LLVMSetTailCall(value_ret, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user