Fix lookup function issue reported in nightly run (#3868)
This commit is contained in:
@ -2222,6 +2222,9 @@ aot_lookup_function(const AOTModuleInstance *module_inst, const char *name)
|
||||
(AOTFunctionInstance *)module_inst->export_functions;
|
||||
AOTFunctionInstance key = { .func_name = (char *)name };
|
||||
|
||||
if (!export_funcs)
|
||||
return NULL;
|
||||
|
||||
return bsearch(&key, export_funcs, module_inst->export_func_count,
|
||||
sizeof(AOTFunctionInstance), cmp_func_inst);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user