]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: remove NON_DEPENDENT_EXPR, part 2
authorPatrick Palka <ppalka@redhat.com>
Fri, 20 Oct 2023 14:47:07 +0000 (10:47 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 20 Oct 2023 14:47:07 +0000 (10:47 -0400)
commitcd0e05b7ac3dee11287078acd00a19e52a738963
tree27ec32364cd4ecdb3c847d265f3d06c203d5cd86
parentdad311874ac3b3cf4eca1c04f67cae80c953f7b8
c++: remove NON_DEPENDENT_EXPR, part 2

This follow-up patch removes build_non_dependent_expr (and
make_args_non_dependent) and calls thereof, no functional change.

gcc/cp/ChangeLog:

* call.cc (build_new_method_call): Remove calls to
build_non_dependent_expr and/or make_args_non_dependent.
* coroutines.cc (finish_co_return_stmt): Likewise.
* cp-tree.h (build_non_dependent_expr): Remove.
(make_args_non_dependent): Remove.
* decl2.cc (grok_array_decl): Remove calls to
build_non_dependent_expr and/or make_args_non_dependent.
(build_offset_ref_call_from_tree): Likewise.
* init.cc (build_new): Likewise.
* pt.cc (make_args_non_dependent): Remove.
(test_build_non_dependent_expr): Remove.
(cp_pt_cc_tests): Adjust.
* semantics.cc (finish_expr_stmt): Remove calls to
build_non_dependent_expr and/or make_args_non_dependent.
(finish_for_expr): Likewise.
(finish_call_expr): Likewise.
(finish_omp_atomic): Likewise.
* typeck.cc (finish_class_member_access_expr): Likewise.
(build_x_indirect_ref): Likewise.
(build_x_binary_op): Likewise.
(build_x_array_ref): Likewise.
(build_x_vec_perm_expr): Likewise.
(build_x_shufflevector): Likewise.
(build_x_unary_op): Likewise.
(cp_build_addressof): Likewise.
(build_x_conditional_expr): Likewise.
(build_x_compound_expr): Likewise.
(build_static_cast): Likewise.
(build_x_modify_expr): Likewise.
(check_return_expr): Likewise.
* typeck2.cc (build_x_arrow): Likewise.

Reviewed-by: Jason Merrill <jason@redhat.com>
gcc/cp/call.cc
gcc/cp/coroutines.cc
gcc/cp/cp-tree.h
gcc/cp/decl2.cc
gcc/cp/init.cc
gcc/cp/pt.cc
gcc/cp/semantics.cc
gcc/cp/typeck.cc
gcc/cp/typeck2.cc