diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-05 01:42:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-05 01:42:04 +0000 |
commit | 83cf05a3b0e655dc8ea1cb4c4e1eef541b770992 (patch) | |
tree | 60cc3b4dfcebef6a7fce82dddd0df3aed5e085d1 /include/clang/Lex/Preprocessor.h | |
parent | e90b0acaa1d63285e1f3222a33bb4b6d9f0807db (diff) |
Fix a bug where we'd try to look beyond the current cached tokens when
not in backtracking mode. This was just using the wrong predicate.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index efe057e334..54dc1b62df 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -414,7 +414,7 @@ public: /// invoked. void AnnotateCachedTokens(const Token &Tok) { assert(Tok.isAnnotationToken() && "Expected annotation token"); - if (CachedLexPos != 0 && InCachingLexMode()) + if (CachedLexPos != 0 && isBacktrackEnabled()) AnnotatePreviousCachedTokens(Tok); } |