Set is_vram_word_align as false in aot_const_str_set_insert function (#3271)

Set `is_vram_word_align` as false in aot_const_str_set_insert function when
`const char *name` is not from vram required word_align reading.
This commit is contained in:
dongsheng28849455 2024-04-02 14:17:30 +08:00 committed by GitHub
parent bad9a2a231
commit 250829c0cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4722,6 +4722,9 @@ aot_set_module_name(AOTModule *module, const char *name, char *error_buf,
module->name =
aot_const_str_set_insert((const uint8 *)name, strlen(name) + 1, module,
#if (WASM_ENABLE_WORD_ALIGN_READ != 0)
false,
#endif
error_buf, error_buf_size);
return module->name != NULL;
}