forked from OSchip/llvm-project
Fix predicate in 'InCachingLexMode' to include 'CurPTHLexer'.
llvm-svn: 109485
This commit is contained in:
parent
fee882ac95
commit
3d625eb2bf
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue