From: Ted Kremenek Date: Sat, 22 Nov 2008 00:41:34 +0000 (+0000) Subject: Fix predicate: we're not in caching mode if CurPPLexer == 0, not CurLexer == 0. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3296ccea50e7b6649638bd666181e0825145e898;p=clang Fix predicate: we're not in caching mode if CurPPLexer == 0, not CurLexer == 0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59848 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 1a60d98862..fb2cb1d33b 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -628,7 +628,7 @@ private: //===--------------------------------------------------------------------===// // Caching stuff. void CachingLex(Token &Result); - bool InCachingLexMode() const { return CurLexer == 0 && CurTokenLexer == 0; } + bool InCachingLexMode() const { return CurPPLexer == 0 && CurTokenLexer == 0;} void EnterCachingLexMode(); void ExitCachingLexMode() { if (InCachingLexMode())