Avoid valid Coverity warning for comparing array to zero.

* gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
	pointer element for equality to zero, not that of the cotaining
	array.
This commit is contained in:
Martin Sebor 2021-08-31 11:16:37 -06:00
parent e4d2305adf
commit b3aa3288a9
1 changed files with 1 additions and 1 deletions

View File

@ -2433,7 +2433,7 @@ maybe_warn_alloc_args_overflow (gimple *stmt, const tree args[2],
}
}
if (!argrange[0])
if (!argrange[0][0])
return;
/* For a two-argument alloc_size, validate the product of the two