Fix predicate in 'InCachingLexMode' to include 'CurPTHLexer'.

llvm-svn: 109485
This commit is contained in:
Ted Kremenek 2010-07-27 02:58:59 +00:00
parent fee882ac95
commit 3d625eb2bf
1 changed files with 2 additions and 1 deletions

View File

@ -898,7 +898,8 @@ private:
bool InCachingLexMode() const {
// If the Lexer pointers are 0 and IncludeMacroStack is empty, it means
// that we are past EOF, not that we are in CachingLex mode.
return CurPPLexer == 0 && CurTokenLexer == 0 && !IncludeMacroStack.empty();
return CurPPLexer == 0 && CurTokenLexer == 0 && CurPTHLexer == 0 &&
!IncludeMacroStack.empty();
}
void EnterCachingLexMode();
void ExitCachingLexMode() {