From: Chris Lattner Date: Wed, 17 Oct 2007 21:22:38 +0000 (+0000) Subject: Fix assertion for raw lexer. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd1f344f874799ce8a320d81043a431b65fd1fe2;p=clang Fix assertion for raw lexer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43091 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;