Skip to content

Commit 6e547ba

Browse files
authored
aot_compile_op_call: Stop setting calling convention explicitly (#3140)
The current logic doesn't work for some cases. cf. #3138 It's unclear why we are setting the calling convention explicitly here at all. In many cases, the default just seems working.
1 parent cfa90ca commit 6e547ba

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/iwasm/compilation/aot_emit_function.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,10 +1088,6 @@ aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
10881088
goto fail;
10891089
}
10901090

1091-
/* Set calling convention for the call with the func's calling
1092-
convention */
1093-
LLVMSetInstructionCallConv(value_ret, LLVMGetFunctionCallConv(func));
1094-
10951091
if (tail_call)
10961092
LLVMSetTailCall(value_ret, true);
10971093

0 commit comments

Comments
 (0)