aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-08 20:17:14 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-08 20:17:14 +0000
commit76e3da57b0e8cf72d221f44d54566ef206341668 (patch)
tree50e02b99899599b547dfa8cb0b70fb5390a1ea2f /lib/Sema/SemaExpr.cpp
parentb319e029a6a05a76023c1bb1ce77a6d567457838 (diff)
When completing a lambda expression, make sure to check and attach the
body of the lambda to the function call operator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 1829565238..bbf992c219 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/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(