From: Yaron Keren Date: Tue, 24 Nov 2015 20:18:24 +0000 (+0000) Subject: Replace [=] lambda capture with [&] per David Blaikieþ suggestion. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80803f026ba7160f7cfa122c7ef829ab42abc3bf;p=clang Replace [=] lambda capture with [&] per David Blaikieþ suggestion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254013 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index ab3377a417..61eeedb130 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -1536,7 +1536,7 @@ bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { // Check whether DeclModule is transitively exported to an import of // the lookup set. return std::any_of(LookupModules.begin(), LookupModules.end(), - [=](Module *M) { return M->isModuleVisible(DeclModule); }); + [&](Module *M) { return M->isModuleVisible(DeclModule); }); } bool Sema::isVisibleSlow(const NamedDecl *D) {