]> granicus.if.org Git - clang/commitdiff
Fix predicate: we're not in caching mode if CurPPLexer == 0, not CurLexer == 0.
authorTed Kremenek <kremenek@apple.com>
Sat, 22 Nov 2008 00:41:34 +0000 (00:41 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 22 Nov 2008 00:41:34 +0000 (00:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59848 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Preprocessor.h

index 1a60d98862ae99cbea9960c37e782a44bf35ef32..fb2cb1d33b246322dbe263f2d8b4df23ceb94130 100644 (file)
@@ -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())