aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.cc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2023-10-20 10:47:07 -0400
committerPatrick Palka <ppalka@redhat.com>2023-10-20 10:47:07 -0400
commitcd0e05b7ac3dee11287078acd00a19e52a738963 (patch)
tree27ec32364cd4ecdb3c847d265f3d06c203d5cd86 /gcc/cp/init.cc
parentdad311874ac3b3cf4eca1c04f67cae80c953f7b8 (diff)
downloadgcc-cd0e05b7ac3dee11287078acd00a19e52a738963.zip
gcc-cd0e05b7ac3dee11287078acd00a19e52a738963.tar.gz
gcc-cd0e05b7ac3dee11287078acd00a19e52a738963.tar.bz2
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>
Diffstat (limited to 'gcc/cp/init.cc')
-rw-r--r--gcc/cp/init.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/cp/init.cc b/gcc/cp/init.cc
index c583029..d1bae3b 100644
--- a/gcc/cp/init.cc
+++ b/gcc/cp/init.cc
@@ -3920,11 +3920,6 @@ build_new (location_t loc, vec<tree, va_gc> **placement, tree type,
(**init)[i] = copy_node (e);
}
}
-
- make_args_non_dependent (*placement);
- if (nelts)
- nelts = build_non_dependent_expr (nelts);
- make_args_non_dependent (*init);
}
if (nelts)