]> granicus.if.org Git - clang/commitdiff
Replace [=] lambda capture with [&] per David BlaikieĆ¾ suggestion.
authorYaron Keren <yaron.keren@gmail.com>
Tue, 24 Nov 2015 20:18:24 +0000 (20:18 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 24 Nov 2015 20:18:24 +0000 (20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254013 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index ab3377a41795b869ee4b8ddda527982e227c0a66..61eeedb130ad7ca04d05fc6cc8fbde28dda8e5e8 100644 (file)
@@ -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) {