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())
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits