From 3d0e96b676adbcf99aa752d77985b9643c849dfc Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 27 Oct 2016 10:51:29 +0000 Subject: [PATCH] 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 --- lib/Lex/PPLexerChange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); } -- 2.50.1