mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
aot/jit: Set module layout (#2260)
LLVM 15 and later sometimes perform wrong optimizations without this.
This commit is contained in:
parent
e78f63c7ee
commit
5d69f364db
|
@ -2165,6 +2165,7 @@ aot_create_comp_context(const AOTCompData *comp_data, aot_comp_option_t option)
|
|||
aot_set_last_error("create LLVM target data layout failed.");
|
||||
goto fail;
|
||||
}
|
||||
LLVMSetModuleDataLayout(comp_ctx->module, target_data_ref);
|
||||
comp_ctx->pointer_size = LLVMPointerSize(target_data_ref);
|
||||
LLVMDisposeTargetData(target_data_ref);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user