c++: Remove redundant calls to type_dependent_expression_p
authorPatrick Palka <ppalka@redhat.com>
Wed, 25 Mar 2020 03:58:23 +0000 (23:58 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 27 Mar 2020 00:44:49 +0000 (20:44 -0400)
commit54f58e9416debf139bd88d8055cdfbacf7e20204
tree038f777db0da6ea346693c46ddfb3cca7a083212
parent65937db83cd62daef230ece2d92f23f01fb90927
c++: Remove redundant calls to type_dependent_expression_p

This simplifies conditions that test both value_dependent_expression_p and
type_dependent_expression_p, since the former predicate now subsumes the latter.

gcc/cp/ChangeLog:

* decl.c (compute_array_index_type_loc): Remove redundant
type_dependent_expression_p check that is subsumed by
value_dependent_expression_p.
* decl2.c (is_late_template_attribute): Likewise.
* pt.c (uses_template_parms): Likewise.
(dependent_template_arg_p): Likewise.
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c