[cfe-commits] r43091 - /cfe/trunk/include/clang/Lex/Lexer.h
Chris Lattner
sabre at nondot.org
Wed Oct 17 14:22:38 PDT 2007
Author: lattner
Date: Wed Oct 17 16:22:38 2007
New Revision: 43091
URL: http://llvm.org/viewvc/llvm-project?rev=43091&view=rev
Log:
Fix assertion for raw lexer.
Modified:
cfe/trunk/include/clang/Lex/Lexer.h
Modified: cfe/trunk/include/clang/Lex/Lexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Lexer.h?rev=43091&r1=43090&r2=43091&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Lexer.h (original)
+++ cfe/trunk/include/clang/Lex/Lexer.h Wed Oct 17 16:22:38 2007
@@ -145,7 +145,7 @@
/// 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;
More information about the cfe-commits
mailing list