From fd1f344f874799ce8a320d81043a431b65fd1fe2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 17 Oct 2007 21:22:38 +0000 Subject: [PATCH] Fix assertion for raw lexer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43091 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Lex/Lexer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1