From: Simon Pilgrim Date: Thu, 27 Oct 2016 10:51:29 +0000 (+0000) Subject: Fix MSVC warning about missing 'this' from lambda default capture mode X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d0e96b676adbcf99aa752d77985b9643c849dfc;p=clang Fix MSVC warning about missing 'this' from lambda default capture mode git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285281 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index d14779b7e3..4db17c344b 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -41,7 +41,7 @@ bool Preprocessor::isInPrimaryFile() const { assert(IsFileLexer(IncludeMacroStack[0]) && "Top level include stack isn't our primary lexer?"); return std::none_of(IncludeMacroStack.begin() + 1, IncludeMacroStack.end(), - [](const IncludeStackInfo &ISI) -> bool { + [this](const IncludeStackInfo &ISI) -> bool { return IsFileLexer(ISI); }); }