[cfe-commits] r59848 - /cfe/trunk/include/clang/Lex/Preprocessor.h

Ted Kremenek kremenek at apple.com
Fri Nov 21 16:41:35 PST 2008


Author: kremenek
Date: Fri Nov 21 18:41:34 2008
New Revision: 59848

URL: http://llvm.org/viewvc/llvm-project?rev=59848&view=rev
Log:
Fix predicate: we're not in caching mode if CurPPLexer == 0, not CurLexer == 0.

Modified:
    cfe/trunk/include/clang/Lex/Preprocessor.h

Modified: cfe/trunk/include/clang/Lex/Preprocessor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Preprocessor.h?rev=59848&r1=59847&r2=59848&view=diff

==============================================================================
--- cfe/trunk/include/clang/Lex/Preprocessor.h (original)
+++ cfe/trunk/include/clang/Lex/Preprocessor.h Fri Nov 21 18:41:34 2008
@@ -628,7 +628,7 @@
   //===--------------------------------------------------------------------===//
   // 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())





More information about the cfe-commits mailing list