aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-22 00:41:34 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-22 00:41:34 +0000
commit3296ccea50e7b6649638bd666181e0825145e898 (patch)
treeaeeb660b657be6faaba895502810bb1702fcd8e4 /include/clang/Lex/Preprocessor.h
parentd2bdeed0727c291a1a0037dc4fa80379dafa0687 (diff)
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
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h2
1 files changed, 1 insertions, 1 deletions
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())