mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 05:06:17 +00:00
Fix some static scan issues (#2362)
This commit is contained in:
parent
81f0371f63
commit
fbcf8c2c60
|
@ -7014,6 +7014,7 @@ static bool
|
||||||
copy_params_to_dynamic_space(WASMLoaderContext *loader_ctx, bool is_if_block,
|
copy_params_to_dynamic_space(WASMLoaderContext *loader_ctx, bool is_if_block,
|
||||||
char *error_buf, uint32 error_buf_size)
|
char *error_buf, uint32 error_buf_size)
|
||||||
{
|
{
|
||||||
|
bool ret = false;
|
||||||
int16 *frame_offset = NULL;
|
int16 *frame_offset = NULL;
|
||||||
uint8 *cells = NULL, cell;
|
uint8 *cells = NULL, cell;
|
||||||
int16 *src_offsets = NULL;
|
int16 *src_offsets = NULL;
|
||||||
|
@ -7084,13 +7085,13 @@ copy_params_to_dynamic_space(WASMLoaderContext *loader_ctx, bool is_if_block,
|
||||||
if (is_if_block)
|
if (is_if_block)
|
||||||
PUSH_OFFSET_TYPE(VALUE_TYPE_I32);
|
PUSH_OFFSET_TYPE(VALUE_TYPE_I32);
|
||||||
|
|
||||||
|
ret = true;
|
||||||
|
|
||||||
|
fail:
|
||||||
/* Free the emit data */
|
/* Free the emit data */
|
||||||
wasm_runtime_free(emit_data);
|
wasm_runtime_free(emit_data);
|
||||||
|
|
||||||
return true;
|
return ret;
|
||||||
|
|
||||||
fail:
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1104,10 +1104,14 @@ execute_post_instantiate_functions(WASMModuleInstance *module_inst,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if WASM_ENABLE_LIBC_WASI != 0
|
||||||
if (initialize_func
|
if (initialize_func
|
||||||
&& !wasm_call_function(exec_env, initialize_func, 0, NULL)) {
|
&& !wasm_call_function(exec_env, initialize_func, 0, NULL)) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)initialize_func;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (post_inst_func
|
if (post_inst_func
|
||||||
&& !wasm_call_function(exec_env, post_inst_func, 0, NULL)) {
|
&& !wasm_call_function(exec_env, post_inst_func, 0, NULL)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user