From 21f4692c622fedfecab3571c12b37ce6d72a4c0e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 8 Feb 2012 20:17:14 +0000 Subject: When completing a lambda expression, make sure to check and attach the body of the lambda to the function call operator. llvm-svn: 150087 --- clang/lib/Sema/SemaExpr.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'clang/lib/Sema/SemaExpr.cpp') diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 18295652382..bbf992c2198 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -9722,8 +9722,6 @@ void Sema::TryCaptureVar(VarDecl *var, SourceLocation loc, // of the copy/move done to move a __block variable to the heap. type.addConst(); - // FIXME: Add an initialized entity for lambda capture. - // FIXME: Won't work for arrays, although we do need this behavior. Expr *declRef = new (Context) DeclRefExpr(var, type, VK_LValue, loc); ExprResult result = PerformCopyInitialization( -- cgit v1.2.3