diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-10-27 10:51:29 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-10-27 10:51:29 +0000 |
commit | 3d0e96b676adbcf99aa752d77985b9643c849dfc (patch) | |
tree | 95bf7eb0e41d34224524ee361615fd7a2ff16753 /lib/Lex/PPLexerChange.cpp | |
parent | 926caf25d5ae278d9570309e562133a970cc80db (diff) |
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
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); }); } |