1
0
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:
Daniel Dunbar 2010-09-24 17:10:26 +00:00
parent 0cda9d5e39
commit 452f5345c5
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -10,3 +10,6 @@
# CHECK: .quad 4597526701198935065
# CHECK: .quad -4600933674317040845
.double 5, .232, -11.1
# CHECK: .quad 0
.double 0.0