aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/CXXInheritance.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2017-01-13 18:55:32 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2017-01-13 18:55:32 +0000
commitc6e4583dbbdc3112c9a04d35a161dc9b4657f607 (patch)
tree3ac46fca99221dd33730df4e553b4aa881648c0c /clang/lib/AST/CXXInheritance.cpp
parent6ad71010ab2c3d57312cbdf6e66a5fc6333be03f (diff)
downloadllvm-c6e4583dbbdc3112c9a04d35a161dc9b4657f607.zip
llvm-c6e4583dbbdc3112c9a04d35a161dc9b4657f607.tar.gz
llvm-c6e4583dbbdc3112c9a04d35a161dc9b4657f607.tar.bz2
Remove unused lambda captures. NFC
llvm-svn: 291939
Diffstat (limited to 'clang/lib/AST/CXXInheritance.cpp')
-rw-r--r--clang/lib/AST/CXXInheritance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/CXXInheritance.cpp b/clang/lib/AST/CXXInheritance.cpp
index a97d6a2..56fb046 100644
--- a/clang/lib/AST/CXXInheritance.cpp
+++ b/clang/lib/AST/CXXInheritance.cpp
@@ -88,7 +88,7 @@ bool CXXRecordDecl::isDerivedFrom(const CXXRecordDecl *Base,
const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl();
// FIXME: Capturing 'this' is a workaround for name lookup bugs in GCC 4.7.
return lookupInBases(
- [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
+ [BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
return FindBaseClass(Specifier, Path, BaseDecl);
},
Paths);
@@ -109,7 +109,7 @@ bool CXXRecordDecl::isVirtuallyDerivedFrom(const CXXRecordDecl *Base) const {
const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl();
// FIXME: Capturing 'this' is a workaround for name lookup bugs in GCC 4.7.
return lookupInBases(
- [this, BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
+ [BaseDecl](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) {
return FindVirtualBaseClass(Specifier, Path, BaseDecl);
},
Paths);