mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Update error message due to previous commit, r174926.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d556fd1290
commit
53e5bb70db
@ -285,9 +285,11 @@ AsmToken AsmLexer::LexDigit() {
|
||||
// Either octal or hexidecimal.
|
||||
long long Value;
|
||||
unsigned Radix = doLookAhead(CurPtr, 8);
|
||||
bool isHex = Radix == 16;
|
||||
StringRef Result(TokStart, CurPtr - TokStart);
|
||||
if (Result.getAsInteger(Radix, Value))
|
||||
return ReturnError(TokStart, "invalid octal number");
|
||||
return ReturnError(TokStart, !isHex ? "invalid octal number" :
|
||||
"invalid hexdecimal number");
|
||||
|
||||
// Consume the [hH].
|
||||
if (Radix == 16)
|
||||
|
Loading…
Reference in New Issue
Block a user