* semantics.c (lambda_expr_this_capture): Use thisify_lambda_field.
From-SVN: r153512
This commit is contained in:
parent
9660afe042
commit
92de1b3702
@ -1,5 +1,7 @@
|
||||
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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user