summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-01-07 04:59:52 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-01-07 04:59:52 +0000
commit73a040906d0cbf2240ed2bf19523fc0d73651bf8 (patch)
tree198a38b41b513ab3d34691846ac4fd27a3c45d52 /clang/lib/Sema/SemaOverload.cpp
parent11c99162c41f6c788b2535779915a70319dc3510 (diff)
downloadbcm5719-llvm-73a040906d0cbf2240ed2bf19523fc0d73651bf8.tar.gz
bcm5719-llvm-73a040906d0cbf2240ed2bf19523fc0d73651bf8.zip
More lambda work: semantic analysis of capturing 'this'. It's a bit complicated, but we have to be careful about when exactly captures are marked given PotentiallyPotentiallyEvaluated contexts. (Actually, it's not 100% correct yet, but it's close enough for the moment.)
llvm-svn: 147723
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r--clang/lib/Sema/SemaOverload.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index ee846c3fc3d..be89ed4462a 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -10401,6 +10401,7 @@ Expr *Sema::FixOverloadedFunctionReference(Expr *E, DeclAccessPair Found,
SourceLocation Loc = MemExpr->getMemberLoc();
if (MemExpr->getQualifier())
Loc = MemExpr->getQualifierLoc().getBeginLoc();
+ CheckCXXThisCapture(Loc);
Base = new (Context) CXXThisExpr(Loc,
MemExpr->getBaseType(),
/*isImplicit=*/true);
OpenPOWER on IntegriCloud