From 64ac027584dbf6bbacf520d7ba9419d724ad310f Mon Sep 17 00:00:00 2001 From: TL Date: Wed, 11 Dec 2024 17:27:58 +0800 Subject: [PATCH] set alignment 4 when loading multi return value --- core/iwasm/compilation/aot_emit_function.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/iwasm/compilation/aot_emit_function.c b/core/iwasm/compilation/aot_emit_function.c index 49b1ac1cb4..1829f1949b 100644 --- a/core/iwasm/compilation/aot_emit_function.c +++ b/core/iwasm/compilation/aot_emit_function.c @@ -1832,6 +1832,7 @@ aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx, aot_set_last_error("llvm build load failed."); goto fail; } + LLVMSetAlignment(ext_ret, 4); PUSH(ext_ret, ext_ret_types[i]); } }