Skip to content
Snippets Groups Projects
Commit 3296ccea authored by Ted Kremenek's avatar Ted Kremenek
Browse files

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
parent d2bdeed0
No related branches found
No related tags found
No related merge requests found
...@@ -628,7 +628,7 @@ private: ...@@ -628,7 +628,7 @@ private:
//===--------------------------------------------------------------------===// //===--------------------------------------------------------------------===//
// Caching stuff. // Caching stuff.
void CachingLex(Token &Result); void CachingLex(Token &Result);
bool InCachingLexMode() const { return CurLexer == 0 && CurTokenLexer == 0; } bool InCachingLexMode() const { return CurPPLexer == 0 && CurTokenLexer == 0;}
void EnterCachingLexMode(); void EnterCachingLexMode();
void ExitCachingLexMode() { void ExitCachingLexMode() {
if (InCachingLexMode()) if (InCachingLexMode())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment