Fix lexing octal escapes like:
void foo() {
"\0";
}
llvm-svn: 39638
This commit is contained in:
parent
b2dd241b15
commit
3f4b6e3623
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue