]> granicus.if.org Git - clang/commitdiff
Revert rL313511, "Fix a warning discovered by rL313487. [-Wunused-lambda-capture]"
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 18 Sep 2017 05:52:57 +0000 (05:52 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 18 Sep 2017 05:52:57 +0000 (05:52 +0000)
It was incompatible to msc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313513 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPLexerChange.cpp

index aa7cf17f0800121c622d9a7d0803c93f59c3efd7..5686871675d9f5003b87d82619644b4a59726371 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(),
-      [](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