warn-access: Fix up warning_at arguments
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Jan 2022 10:18:45 +0000 (11:18 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 21 Jan 2022 10:22:22 +0000 (11:22 +0100)
commit3e0b19f1d670aa37ac06d63d059c7277ae1188d8
tree01286efc8550e64646040b019c097aad4773eeba
parenteb5ee6464809e051e0292471597931a660485658
warn-access: Fix up warning_at arguments

A warning regression fix I'm about to post warns (and breaks bootstrap due
to that) on the following spot.  Seems it is a copy and paste from
earlier code that mentions the %qD variable instead of talking about
unnamed temporary.

2022-01-21  Jakub Jelinek  <jakub@redhat.com>

* gimple-ssa-warn-access.cc (pass_waccess::warn_invalid_pointer):
Avoid passing var to warning_at when the format string doesn't
refer to it.
gcc/gimple-ssa-warn-access.cc