aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaLambda.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-09 02:20:38 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-09 02:20:38 +0000
commit5e058eb02875530f1aed10c3417a1011744239b1 (patch)
tree7150bbf4c92c27d33290a4a4678bfd057e50c6d6 /lib/Sema/SemaLambda.cpp
parent20f87a4cd91b8d76571dc96aece916ac0bdf8b9f (diff)
Don't complain about the lack of a constructor for a lambda expression. They are constructed in different ways
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLambda.cpp')
-rw-r--r--lib/Sema/SemaLambda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp
index 033bf4ab3c..776d27a364 100644
--- a/lib/Sema/SemaLambda.cpp
+++ b/lib/Sema/SemaLambda.cpp
@@ -29,7 +29,7 @@ void Sema::ActOnStartOfLambdaDefinition(LambdaIntroducer &Intro,
// Start constructing the lambda class.
CXXRecordDecl *Class = CXXRecordDecl::Create(Context, TTK_Class, DC,
Intro.Range.getBegin(),
- /*IdLoc=*/SourceLocation(),
+ /*IdLoc=*/Intro.Range.getBegin(),
/*Id=*/0);
Class->startDefinition();
Class->setLambda(true);