projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d556fd1
)
Update error message due to previous commit, r174926.
author
Chad Rosier
<mcrosier@apple.com>
Tue, 12 Feb 2013 01:12:24 +0000
(
01:12
+0000)
committer
Chad Rosier
<mcrosier@apple.com>
Tue, 12 Feb 2013 01:12:24 +0000
(
01:12
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174927
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCParser/AsmLexer.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCParser/AsmLexer.cpp
b/lib/MC/MCParser/AsmLexer.cpp
index a7de64f32e2bbd39917566c7b5c1899c8acc7666..530e94e8d374d6f853b17986e407592cc81c3229 100644
(file)
--- a/
lib/MC/MCParser/AsmLexer.cpp
+++ b/
lib/MC/MCParser/AsmLexer.cpp
@@
-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)