From 93f36ca962d3f70e85a0a2a7c65ffabff68e19ff Mon Sep 17 00:00:00 2001 From: Wenyong Huang Date: Sat, 11 Jun 2022 03:31:04 +0800 Subject: [PATCH] Fix llvm 14.0 jit issue --- core/iwasm/compilation/aot_llvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/iwasm/compilation/aot_llvm.c b/core/iwasm/compilation/aot_llvm.c index 755eabafd..c9bfef8c0 100644 --- a/core/iwasm/compilation/aot_llvm.c +++ b/core/iwasm/compilation/aot_llvm.c @@ -556,7 +556,7 @@ create_func_type_indexes(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx) } func_ctx->func_type_indexes = - LLVMBuildLoad2(comp_ctx->builder, OPQ_PTR_TYPE, + LLVMBuildLoad2(comp_ctx->builder, INT32_PTR_TYPE, func_ctx->func_type_indexes, "func_type_indexes"); if (!func_ctx->func_type_indexes) { aot_set_last_error("llvm build load failed."); @@ -702,7 +702,7 @@ aot_create_func_context(AOTCompData *comp_data, AOTCompContext *comp_ctx, goto fail; } - if (!(func_ctx->argv_buf = LLVMBuildLoad2(comp_ctx->builder, OPQ_PTR_TYPE, + if (!(func_ctx->argv_buf = LLVMBuildLoad2(comp_ctx->builder, INT32_PTR_TYPE, argv_buf_addr, "argv_buf"))) { aot_set_last_error("llvm build load failed"); goto fail;