]> granicus.if.org Git - clang/commitdiff
Fix assertion for raw lexer.
authorChris Lattner <sabre@nondot.org>
Wed, 17 Oct 2007 21:22:38 +0000 (21:22 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Oct 2007 21:22:38 +0000 (21:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43091 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Lexer.h

index eda50382ad8afbecd88ba4d20e0d68ae11dda46c..10ffbb98dc3dffffcf2efce5071c4ae63443648d 100644 (file)
@@ -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;