r313513 - Revert rL313511, "Fix a warning discovered by rL313487. [-Wunused-lambda-capture]"

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 17 22:52:57 PDT 2017


Author: chapuni
Date: Sun Sep 17 22:52:57 2017
New Revision: 313513

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

It was incompatible to msc.

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=313513&r1=313512&r2=313513&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PPLexerChange.cpp (original)
+++ cfe/trunk/lib/Lex/PPLexerChange.cpp Sun Sep 17 22:52:57 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(),
-      [](const IncludeStackInfo &ISI) -> bool { return IsFileLexer(ISI); });
+      [this](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