Refine looking up aot function with index (#3882)

* Refine looking up aot function with index

* refine the code
This commit is contained in:
Wenyong Huang
2024-10-29 10:58:11 +08:00
committed by GitHub
parent 483c57de9f
commit a3960c834d
4 changed files with 97 additions and 30 deletions

View File

@ -1579,8 +1579,7 @@ wasm_runtime_get_memory(WASMModuleInstanceCommon *module_inst, uint32 index)
#if WASM_ENABLE_AOT != 0
if (module_inst->module_type == Wasm_Module_AoT)
return aot_get_memory_with_index((AOTModuleInstance *)module_inst,
index);
return aot_get_memory_with_idx((AOTModuleInstance *)module_inst, index);
#endif
return NULL;