[llvm-commits] [llvm] r44212 - /llvm/trunk/utils/TableGen/TGLexer.cpp
Chris Lattner
sabre at nondot.org
Sat Nov 17 21:48:46 PST 2007
Author: lattner
Date: Sat Nov 17 23:48:46 2007
New Revision: 44212
URL: http://llvm.org/viewvc/llvm-project?rev=44212&view=rev
Log:
minor cleanups
Modified:
llvm/trunk/utils/TableGen/TGLexer.cpp
Modified: llvm/trunk/utils/TableGen/TGLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TGLexer.cpp?rev=44212&r1=44211&r2=44212&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/TGLexer.cpp (original)
+++ llvm/trunk/utils/TableGen/TGLexer.cpp Sat Nov 17 23:48:46 2007
@@ -56,7 +56,7 @@
char CurChar = *CurPtr++;
switch (CurChar) {
default:
- return CurChar;
+ return (unsigned char)CurChar;
case 0:
// A nul character in the stream is either the end of the current buffer or
// a random nul in the file. Disambiguate that here.
@@ -84,7 +84,7 @@
// Only treat a \n\r or \r\n as a single line.
if ((*CurPtr == '\n' || (*CurPtr == '\r')) &&
*CurPtr != CurChar)
- ++CurPtr; // Each the two char newline sequence.
+ ++CurPtr; // Eat the two char newline sequence.
++CurLineNo;
return '\n';
More information about the llvm-commits
mailing list