diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-22 00:41:34 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-22 00:41:34 +0000 |
commit | a3148f16e4cd5eb33583a80cb12c99c338be1e0c (patch) | |
tree | b5c7e2fae7a47e3f07348925250a8b10cf67d9d5 /clang | |
parent | be8e7f851c18e39af9942e61a6faa3da47449cee (diff) | |
download | bcm5719-llvm-a3148f16e4cd5eb33583a80cb12c99c338be1e0c.tar.gz bcm5719-llvm-a3148f16e4cd5eb33583a80cb12c99c338be1e0c.zip |
Fix predicate: we're not in caching mode if CurPPLexer == 0, not CurLexer == 0.
llvm-svn: 59848
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Lex/Preprocessor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h index 1a60d98862a..fb2cb1d33b2 100644 --- a/clang/include/clang/Lex/Preprocessor.h +++ b/clang/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()) |