Fix lexing octal escapes like:

void foo() {
"\0";
}

llvm-svn: 39638
This commit is contained in:
Chris Lattner 2007-06-09 06:20:47 +00:00
parent b2dd241b15
commit 3f4b6e3623
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ static unsigned ProcessCharEscape(const char *&ThisTokBuf,
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.