PR middle-end/97840 - Bogus -Wmaybe-uninitialized passing an empty object to a function
authorMartin Sebor <msebor@redhat.com>
Tue, 17 Nov 2020 03:01:10 +0000 (20:01 -0700)
committerMartin Sebor <msebor@redhat.com>
Tue, 17 Nov 2020 03:01:10 +0000 (20:01 -0700)
commit3072125a40ccfc139a92d44fb3911a8a7186b025
treef8d3b5964d6e4b7f39f1ec0f197cf23179297f23
parentb1ecb86569f63f897f6a95049c4ccf400bddeaad
PR middle-end/97840 - Bogus -Wmaybe-uninitialized passing an empty object to a function

gcc/ChangeLog:
* tree-ssa-uninit.c (maybe_warn_operand): Call is_empty_type.
* tree.c (default_is_empty_type): Rename...
(is_empty_type): ...to this.
* tree.h (is_empty_type): Declare.
gcc/tree-ssa-uninit.c
gcc/tree.c
gcc/tree.h