aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;