diff options
author | Marek Polacek <polacek@redhat.com> | 2024-03-01 13:36:51 -0500 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2024-05-07 15:09:20 -0400 |
commit | 7887d808876c00e682e11c19caae1a0dbc9fa3a8 (patch) | |
tree | 2f8ff1e33989dc8d18641b15ad2e548b53128c60 /gcc/expr.cc | |
parent | 76e591200f54226290ddb49b8ac6231a694bf882 (diff) | |
download | gcc-7887d808876c00e682e11c19caae1a0dbc9fa3a8.zip gcc-7887d808876c00e682e11c19caae1a0dbc9fa3a8.tar.gz gcc-7887d808876c00e682e11c19caae1a0dbc9fa3a8.tar.bz2 |
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.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions