Clear more compile warnings reported by -Wshadow flag (#899)

This commit is contained in:
Wenyong Huang
2021-12-16 14:47:44 +08:00
committed by GitHub
parent 4258b24bcc
commit 66e6e1f7cd
6 changed files with 46 additions and 46 deletions

View File

@ -1813,7 +1813,7 @@ aot_create_comp_context(AOTCompData *comp_data, aot_comp_option_t option)
if (option->enable_simd) {
char *tmp;
bool ret;
bool check_simd_ret;
comp_ctx->enable_simd = true;
@ -1822,9 +1822,10 @@ aot_create_comp_context(AOTCompData *comp_data, aot_comp_option_t option)
goto fail;
}
ret = aot_check_simd_compatibility(comp_ctx->target_arch, tmp);
check_simd_ret =
aot_check_simd_compatibility(comp_ctx->target_arch, tmp);
LLVMDisposeMessage(tmp);
if (!ret) {
if (!check_simd_ret) {
aot_set_last_error("SIMD compatibility check failed, "
"try adding --cpu=<cpu> to specify a cpu "
"or adding --disable-simd to disable SIMD");