diff options
author | Patrick Palka <ppalka@redhat.com> | 2022-05-10 11:52:29 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2022-05-10 11:52:29 -0400 |
commit | ee18dc41035725910f2b6e6c4283f3547f362ae9 (patch) | |
tree | c6959dcee438f4b6606342f6667e04691ea4c651 /libitm/alloc_cpp.cc | |
parent | dc6c96f0707aba6c2c94f41f3ccd0713381e372c (diff) | |
download | gcc-ee18dc41035725910f2b6e6c4283f3547f362ae9.zip gcc-ee18dc41035725910f2b6e6c4283f3547f362ae9.tar.gz gcc-ee18dc41035725910f2b6e6c4283f3547f362ae9.tar.bz2 |
c++: Remove SET_PACK_EXPANSION_PATTERN / SET_ARGUMENT_PACK_ARGS
Unlike in C, in C++ the conditional operator yields an lvalue if both
branches are lvalues, so these setter macros are unnecessary; we can
just assign to PACK_EXPANSION_PATTERN and ARGUMENT_PACK_ARGS directly.
gcc/cp/ChangeLog:
* coroutines.cc (instantiate_coro_traits): Adjust accordingly.
* cp-tree.def: Remove mention of SET_PACK_EXPANSION_PATTERN.
* cp-tree.h (SET_PACK_EXPANSION_PATTERN): Remove.
(SET_ARGUMENT_PACK_ARGS): Remove.
* module.cc (trees_in::tree_node): Adjust accordingly.
* parser.cc (make_char_string_pack): Likewise.
(make_string_pack): Likewise.
* pt.cc (make_pack_expansion): Likewise.
(template_parm_to_arg): Likewise.
(coerce_template_parameter_pack): Likewise.
(extract_fnparm_pack): Likewise.
(extract_locals_r): Likewise.
(make_argument_pack): Likewise.
(tsubst_argument_pack): Likewise.
(lookup_init_capture_pack): Likewise.
(type_unification_real): Likewise.
(unify_pack_expansion): Likewise.
(tsubst_initializer_list): Likewise.
Diffstat (limited to 'libitm/alloc_cpp.cc')
0 files changed, 0 insertions, 0 deletions