]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: DECL_DECOMPOSITION_P cleanup
authorMarek Polacek <polacek@redhat.com>
Fri, 1 Mar 2024 18:36:51 +0000 (13:36 -0500)
committerMarek Polacek <polacek@redhat.com>
Tue, 7 May 2024 19:09:20 +0000 (15:09 -0400)
commit7887d808876c00e682e11c19caae1a0dbc9fa3a8
tree2f8ff1e33989dc8d18641b15ad2e548b53128c60
parent76e591200f54226290ddb49b8ac6231a694bf882
c++: DECL_DECOMPOSITION_P cleanup

DECL_DECOMPOSITION_P already checks VAR_P but we repeat the check
in a lot of places.

gcc/cp/ChangeLog:

* decl.cc (duplicate_decls): Don't check VAR_P before
DECL_DECOMPOSITION_P.
* init.cc (build_aggr_init): Likewise.
* parser.cc (cp_parser_range_for): Likewise.
(do_range_for_auto_deduction): Likewise.
(cp_convert_range_for): Likewise.
(cp_convert_omp_range_for): Likewise.
(cp_finish_omp_range_for): Likewise.
* pt.cc (extract_locals_r): Likewise.
(tsubst_omp_for_iterator): Likewise.
(tsubst_decomp_names): Likewise.
(tsubst_stmt): Likewise.
* typeck.cc (maybe_warn_about_returning_address_of_local): Likewise.
gcc/cp/decl.cc
gcc/cp/init.cc
gcc/cp/parser.cc
gcc/cp/pt.cc
gcc/cp/typeck.cc