mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-04-18 18:18:44 +00:00
Fix compile error when compiler don't support '__has_feature' (#4874)
This commit is contained in:
parent
87a811459f
commit
c3dda4a7d6
|
|
@ -3267,9 +3267,11 @@ aot_invoke_native(WASMExecEnv *exec_env, uint32 func_idx, uint32 argc,
|
|||
bool ret = false;
|
||||
bh_assert(func_idx < aot_module->import_func_count);
|
||||
|
||||
#if defined(__has_feature)
|
||||
#if __has_feature(memory_sanitizer)
|
||||
#include <sanitizer/msan_interface.h>
|
||||
__msan_unpoison(argv, (sizeof(uint32) * argc));
|
||||
#endif
|
||||
#endif
|
||||
import_func = aot_module->import_funcs + func_idx;
|
||||
if (import_func->call_conv_wasm_c_api)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user