* semantics.c (lambda_expr_this_capture): Use thisify_lambda_field.

From-SVN: r153512
This commit is contained in:
Jason Merrill 2009-10-23 16:09:45 -04:00 committed by Jason Merrill
parent 9660afe042
commit 92de1b3702
2 changed files with 3 additions and 4 deletions

View File

@ -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.

View File

@ -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;
}