소스 검색

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
Simon Pilgrim 8 년 전
부모
커밋
3d0e96b676
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/Lex/PPLexerChange.cpp

+ 1 - 1
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);
   });
 }