aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2023-05-07 12:02:16 -0400
committerPatrick Palka <ppalka@redhat.com>2023-05-07 12:02:16 -0400
commit5dfe5d7d17dc9eefd8e4dd0684e6d8405d2e2759 (patch)
treedaddb9dbe31d15f879ec328582f6df7e37a53b30 /gcc/tree-ssa-phiopt.cc
parente4f1ea5d8b96fc9fbe4fc0e0e0a4938ceeef092f (diff)
downloadgcc-5dfe5d7d17dc9eefd8e4dd0684e6d8405d2e2759.zip
gcc-5dfe5d7d17dc9eefd8e4dd0684e6d8405d2e2759.tar.gz
gcc-5dfe5d7d17dc9eefd8e4dd0684e6d8405d2e2759.tar.bz2
c++: various code cleanups
* Harden some tree accessor macros and fix a couple of bad PLACEHOLDER_TYPE_CONSTRAINTS accesses uncovered by this. * Use strip_innermost_template_args in outer_template_args. * Add !processing_template_decl early exit tests to some dependence predicates. gcc/cp/ChangeLog: * cp-tree.h (PLACEHOLDER_TYPE_CONSTRAINTS_INFO): Harden via TEMPLATE_TYPE_PARM_CHECK. (TPARMS_PRIMARY_TEMPLATE): Harden via TREE_VEC_CHECK. (TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL): Harden via TEMPLATE_TEMPLATE_PARM_CHECK. * cxx-pretty-print.cc (cxx_pretty_printer::simple_type_specifier): Guard PLACEHOLDER_TYPE_CONSTRAINTS access. * error.cc (dump_type) <case TEMPLATE_TYPE_PARM>: Use separate variable to store CLASS_PLACEHOLDER_TEMPLATE result. * pt.cc (outer_template_args): Use strip_innermost_template_args. (any_type_dependent_arguments_p): Exit early if !processing_template_decl. Use range-based for. (any_dependent_template_arguments_p): Likewise.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions