Lex, and then fail on invalid constants.

Testcase forthcoming.

rdar://8490596


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2011-04-11 22:24:56 +00:00
parent 5ea5c61589
commit 120fd2dd6d

View File

@ -251,7 +251,7 @@ AsmToken AsmLexer::LexDigit() {
}
// Must be an octal number, it starts with 0.
while (*CurPtr >= '0' && *CurPtr <= '7')
while (*CurPtr >= '0' && *CurPtr <= '9')
++CurPtr;
StringRef Result(TokStart, CurPtr - TokStart);