Fix wamr compiler issues and refine some error messages (#470)
Fix potential memory leak issue when using llvm::EngineBuilder().selectTarget() Fix issue of accessing aot_value's fields after it is freed Fix JIT not print failed to link import warning Change some error messages: 'fail to' to 'failed to' Update error message when SIMD isn't enabled Fix install littlevgl wasm app of wasi version failed Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
This commit is contained in:
@ -1841,8 +1841,12 @@ load_function_section(const uint8 *buf, const uint8 *buf_end,
|
||||
#endif
|
||||
#endif
|
||||
) {
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"invalid local type");
|
||||
if (type == VALUE_TYPE_V128)
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"v128 value type requires simd feature");
|
||||
else
|
||||
set_error_buf_v(error_buf, error_buf_size,
|
||||
"invalid local type 0x%02X", type);
|
||||
return false;
|
||||
}
|
||||
for (k = 0; k < sub_local_count; k++) {
|
||||
|
||||
Reference in New Issue
Block a user