diff options
author | Jason Merrill <jason@redhat.com> | 2022-02-25 09:58:47 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-05-04 09:54:02 -0400 |
commit | 9c6a4beeed572f9e235f881e00ad8c63b6bcc9df (patch) | |
tree | 356ad0232c7b7fa9861bd7124187ec792219087d /libcpp | |
parent | eca04dc8555f5fae462fbd16386da9aaf38a0711 (diff) | |
download | gcc-9c6a4beeed572f9e235f881e00ad8c63b6bcc9df.zip gcc-9c6a4beeed572f9e235f881e00ad8c63b6bcc9df.tar.gz gcc-9c6a4beeed572f9e235f881e00ad8c63b6bcc9df.tar.bz2 |
c++: Remove cdtor_label
Jakub pointed out that cdtor_label is unnecessary, we should get all the
desired semantics with a normal return.
gcc/cp/ChangeLog:
* cp-tree.h (struct language_function): Remove x_cdtor_label.
(cdtor_label, LABEL_DECL_CDTOR): Remove.
* constexpr.cc (returns): Don't check LABEL_DECL_CDTOR.
(cxx_eval_constant_expression): Don't call returns.
* decl.cc (check_goto): Don't check cdtor_label.
(start_preparsed_function): And don't set it.
(finish_constructor_body, finish_destructor_body): Remove.
(finish_function_body): Don't call them.
* typeck.cc (check_return_expr): Handle cdtor_returns_this here.
* semantics.cc (finish_return_stmt): Not here.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions