summaryrefslogtreecommitdiffstats
path: root/clang
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
commita3148f16e4cd5eb33583a80cb12c99c338be1e0c (patch)
treeb5c7e2fae7a47e3f07348925250a8b10cf67d9d5 /clang
parentbe8e7f851c18e39af9942e61a6faa3da47449cee (diff)
downloadbcm5719-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.h2
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())
OpenPOWER on IntegriCloud