]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Simplify uses of LAMBDA_EXPR_EXTRA_SCOPE
authorNathaniel Shead <nathanieloshead@gmail.com>
Sat, 15 Jun 2024 12:47:07 +0000 (22:47 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Sun, 7 Jul 2024 15:02:39 +0000 (01:02 +1000)
commit24cb586cafd40f8fbea68641f97e3431ea76c1b8
treed1a93b85b4186ab6d3ea43d8d28a9bd1fc922008
parentd364c4ced8823bc41fda84f182e1d64e7870549e
c++: Simplify uses of LAMBDA_EXPR_EXTRA_SCOPE

I noticed there already exists a getter to get the scope of a lambda
from its type directly rather than needing to go via
CLASSTYPE_LAMBDA_EXPR, we may as well use it.

gcc/cp/ChangeLog:

* module.cc (trees_out::get_merge_kind): Use
LAMBDA_TYPE_EXTRA_SCOPE instead of LAMBDA_EXPR_EXTRA_SCOPE.
(trees_out::key_mergeable): Likewise.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/cp/module.cc