mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 14:20:33 +00:00
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:
parent
5ea5c61589
commit
120fd2dd6d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user