diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-02-08 20:17:14 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-02-08 20:17:14 +0000 |
commit | 21f4692c622fedfecab3571c12b37ce6d72a4c0e (patch) | |
tree | 7ef454ac96de782a2e69463642b7d51c787ad2d1 /clang/lib/Sema/SemaExpr.cpp | |
parent | c68bf4c036a51c3d1e686b94d2567eb61a766b02 (diff) | |
download | bcm5719-llvm-21f4692c622fedfecab3571c12b37ce6d72a4c0e.tar.gz bcm5719-llvm-21f4692c622fedfecab3571c12b37ce6d72a4c0e.zip |
When completing a lambda expression, make sure to check and attach the
body of the lambda to the function call operator.
llvm-svn: 150087
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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( |