Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
92de1b37
Commit
92de1b37
authored
Oct 23, 2009
by
Jason Merrill
Committed by
Jason Merrill
Oct 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* semantics.c (lambda_expr_this_capture): Use thisify_lambda_field.
From-SVN: r153512
parent
9660afe0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
gcc/cp/ChangeLog
+2
-0
gcc/cp/semantics.c
+1
-4
No files found.
gcc/cp/ChangeLog
View file @
92de1b37
2009-10-23 Jason Merrill <jason@redhat.com>
* semantics.c (lambda_expr_this_capture): Use thisify_lambda_field.
* semantics.c (outer_lambda_capture_p): New fn.
(thisify_lambda_field): Factor out...
(add_default_capture): ...from here.
...
...
gcc/cp/semantics.c
View file @
92de1b37
...
...
@@ -5709,10 +5709,7 @@ lambda_expr_this_capture (tree lambda)
{
/* An outer lambda has already captured 'this'. */
tree
cap
=
LAMBDA_EXPR_THIS_CAPTURE
(
lambda
);
tree
lthis
=
cp_build_indirect_ref
(
DECL_ARGUMENTS
(
containing_function
),
""
,
tf_warning_or_error
);
init
=
finish_non_static_data_member
(
cap
,
lthis
,
NULL_TREE
);
init
=
thisify_lambda_field
(
cap
);
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment