mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
MC/AsmParser: Handle a missed case of floating literals in the lexer.
llvm-svn: 114733
This commit is contained in:
parent
0cda9d5e39
commit
452f5345c5
@ -145,7 +145,7 @@ static void SkipIgnoredIntegerSuffix(const char *&CurPtr) {
|
||||
/// Decimal integer: [1-9][0-9]*
|
||||
AsmToken AsmLexer::LexDigit() {
|
||||
// Decimal integer: [1-9][0-9]*
|
||||
if (CurPtr[-1] != '0') {
|
||||
if (CurPtr[-1] != '0' || CurPtr[0] == '.') {
|
||||
while (isdigit(*CurPtr))
|
||||
++CurPtr;
|
||||
|
||||
|
@ -10,3 +10,6 @@
|
||||
# CHECK: .quad 4597526701198935065
|
||||
# CHECK: .quad -4600933674317040845
|
||||
.double 5, .232, -11.1
|
||||
|
||||
# CHECK: .quad 0
|
||||
.double 0.0
|
||||
|
Loading…
Reference in New Issue
Block a user