diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-24 17:10:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-24 17:10:26 +0000 |
commit | facb34b41cea284b5a0b4992ff619e5cfd5e6a22 (patch) | |
tree | 11111495b4ab5b3a27a94a98f8bbc3600ec00720 /lib/MC/MCParser | |
parent | 6b096c35c7fae6e638138d698af7523edeafcac4 (diff) | |
download | external_llvm-facb34b41cea284b5a0b4992ff619e5cfd5e6a22.zip external_llvm-facb34b41cea284b5a0b4992ff619e5cfd5e6a22.tar.gz external_llvm-facb34b41cea284b5a0b4992ff619e5cfd5e6a22.tar.bz2 |
MC/AsmParser: Handle a missed case of floating literals in the lexer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser')
-rw-r--r-- | lib/MC/MCParser/AsmLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmLexer.cpp b/lib/MC/MCParser/AsmLexer.cpp index 59da381..1a71d24 100644 --- a/lib/MC/MCParser/AsmLexer.cpp +++ b/lib/MC/MCParser/AsmLexer.cpp @@ -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; |