aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-09-21 08:55:15 -0700
committerNathan Sidwell <nathan@acm.org>2020-09-21 11:53:14 -0700
commit33605e9bef15555b19f06424ea0b777b5fdc0dfa (patch)
tree4dfd124ac2f9b0f3e404605ac5223cb8eea2f061 /gcc/cp/lambda.c
parent4f5a297f7520cf5ba10a3a16f32ea0e1655b203f (diff)
downloadgcc-33605e9bef15555b19f06424ea0b777b5fdc0dfa.zip
gcc-33605e9bef15555b19f06424ea0b777b5fdc0dfa.tar.gz
gcc-33605e9bef15555b19f06424ea0b777b5fdc0dfa.tar.bz2
c++: ts_lambda is not needed
We don't need ts_lambda, as IDENTIFIER_LAMBDA_P is sufficient. Killed thusly. gcc/cp/ * decl.c (xref_tag_1): Use IDENTIFIER_LAMBDA_P to detect lambdas. * lambda.c (begin_lambda_type): Use ts_current to push the tag. * name-lookup.h (enum tag_scope): Drop ts_lambda.
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index c94fe8e..364a3e9 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -135,7 +135,7 @@ begin_lambda_type (tree lambda)
/* Create the new RECORD_TYPE for this lambda. */
tree type = xref_tag (/*tag_code=*/record_type, name,
- /*scope=*/ts_lambda, /*template_header_p=*/false);
+ /*scope=*/ts_current, /*template_header_p=*/false);
if (type == error_mark_node)
return error_mark_node;