Przeglądaj źródła

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.
YAMAMOTO Takashi 2 lat temu
rodzic
commit
6e547baf46
1 zmienionych plików z 0 dodań i 4 usunięć
  1. 0 4
      core/iwasm/compilation/aot_emit_function.c

+ 0 - 4
core/iwasm/compilation/aot_emit_function.c

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