aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-17 21:22:38 +0000
committerChris Lattner <sabre@nondot.org>2007-10-17 21:22:38 +0000
commitfd1f344f874799ce8a320d81043a431b65fd1fe2 (patch)
treede88b585f4d97dbfa329d2f71498694db330156c
parent9a6119437672f42be5f50c3fe89fe843b1bfa5b5 (diff)
Fix assertion for raw lexer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43091 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Lex/Lexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h
index eda50382ad..10ffbb98dc 100644
--- a/include/clang/Lex/Lexer.h
+++ b/include/clang/Lex/Lexer.h
@@ -145,7 +145,7 @@ public:
/// switch it back. Return true if the 'next character to read' pointer
/// points and the end of the lexer buffer, false otherwise.
bool LexRawToken(Token &Result) {
- assert(!LexingRawMode && "Already in raw mode!");
+ assert(!(PP && LexingRawMode) && "Already in raw mode!");
LexingRawMode = true;
Lex(Result);
LexingRawMode = PP == 0;