r313511 - Fix a warning discovered by rL313487. [-Wunused-lambda-capture]

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 17 21:55:33 PDT 2017


Author: chapuni
Date: Sun Sep 17 21:55:33 2017
New Revision: 313511

URL: http://llvm.org/viewvc/llvm-project?rev=313511&view=rev
Log:
Fix a warning discovered by rL313487. [-Wunused-lambda-capture]

Modified:
    cfe/trunk/lib/Lex/PPLexerChange.cpp

Modified: cfe/trunk/lib/Lex/PPLexerChange.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPLexerChange.cpp?rev=313511&r1=313510&r2=313511&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPLexerChange.cpp (original)
+++ cfe/trunk/lib/Lex/PPLexerChange.cpp Sun Sep 17 21:55:33 2017
@@ -42,7 +42,7 @@ bool Preprocessor::isInPrimaryFile() con
          "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




More information about the cfe-commits mailing list