]> granicus.if.org Git - clang/commitdiff
Another attempt to fix warning discovered by r313487. [-Wunused-lambda-capture]
authorVitaly Buka <vitalybuka@google.com>
Mon, 18 Sep 2017 08:26:01 +0000 (08:26 +0000)
committerVitaly Buka <vitalybuka@google.com>
Mon, 18 Sep 2017 08:26:01 +0000 (08:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313521 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPLexerChange.cpp

index 5686871675d9f5003b87d82619644b4a59726371..e484e9c4c3a384813b3307447abd01e315428ac7 100644 (file)
@@ -42,7 +42,7 @@ bool Preprocessor::isInPrimaryFile() const {
          "Top level include stack isn't our primary lexer?");
   return std::none_of(
       IncludeMacroStack.begin() + 1, IncludeMacroStack.end(),
-      [this](const IncludeStackInfo &ISI) -> bool { return IsFileLexer(ISI); });
+      [&](const IncludeStackInfo &ISI) -> bool { return IsFileLexer(ISI); });
 }
 
 /// getCurrentLexer - Return the current file lexer being lexed from.  Note