[cfe-commits] r39638 - /cfe/cfe/trunk/Lex/LiteralSupport.cpp

clattner at cs.uiuc.edu clattner at cs.uiuc.edu
Wed Jul 11 09:46:31 PDT 2007


Author: clattner
Date: Wed Jul 11 11:46:31 2007
New Revision: 39638

URL: http://llvm.org/viewvc/llvm-project?rev=39638&view=rev
Log:
Fix lexing octal escapes like:

void foo() {
"\0";
}

Modified:
    cfe/cfe/trunk/Lex/LiteralSupport.cpp

Modified: cfe/cfe/trunk/Lex/LiteralSupport.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Lex/LiteralSupport.cpp?rev=39638&r1=39637&r2=39638&view=diff

==============================================================================
--- cfe/cfe/trunk/Lex/LiteralSupport.cpp (original)
+++ cfe/cfe/trunk/Lex/LiteralSupport.cpp Wed Jul 11 11:46:31 2007
@@ -109,6 +109,7 @@
   case '0': case '1': case '2': case '3':
   case '4': case '5': case '6': case '7': {
     // Octal escapes.
+    --ThisTokBuf;
     ResultChar = 0;
 
     // Octal escapes are a series of octal digits with maximum length 3.





More information about the cfe-commits mailing list