]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid valid Coverity warning for comparing array to zero.
authorMartin Sebor <msebor@redhat.com>
Tue, 31 Aug 2021 17:16:37 +0000 (11:16 -0600)
committerMartin Sebor <msebor@redhat.com>
Tue, 31 Aug 2021 17:16:37 +0000 (11:16 -0600)
commitb3aa3288a958a75744df256d70e7f8e90ccab724
treefcaad72ef306b5f72d26c2be193d290e2ba10191
parente4d2305adf4e9d11e396c1c5e5ae6214340cbcc2
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.
gcc/gimple-ssa-warn-access.cc