aot compiler: Fix the length type passed to aot_memmove/aot_memset (#3378)

The current length type of aot_memmove/aot_memset is size_t, and on
a 64 bit host it is uint64, while what the aot code passes to it is uint32,
this might lead to unexpected behavior.

ps. https://github.com/bytecodealliance/wasm-micro-runtime/pull/3376.
This commit is contained in:
Wenyong Huang
2024-05-01 21:40:52 +08:00
committed by GitHub
parent 163f29e51b
commit 835188cc53
4 changed files with 24 additions and 2 deletions

View File

@ -262,6 +262,7 @@ typedef struct AOTLLVMTypes {
LLVMTypeRef int32_type;
LLVMTypeRef int64_type;
LLVMTypeRef intptr_t_type;
LLVMTypeRef size_t_type;
LLVMTypeRef float32_type;
LLVMTypeRef float64_type;
LLVMTypeRef void_type;