[llvm-commits] [llvm] r129309 - /llvm/trunk/lib/MC/MCParser/AsmLexer.cpp
Eric Christopher
echristo at apple.com
Mon Apr 11 15:24:56 PDT 2011
Author: echristo
Date: Mon Apr 11 17:24:56 2011
New Revision: 129309
URL: http://llvm.org/viewvc/llvm-project?rev=129309&view=rev
Log:
Lex, and then fail on invalid constants.
Testcase forthcoming.
rdar://8490596
Modified:
llvm/trunk/lib/MC/MCParser/AsmLexer.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmLexer.cpp?rev=129309&r1=129308&r2=129309&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmLexer.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmLexer.cpp Mon Apr 11 17:24:56 2011
@@ -251,7 +251,7 @@
}
// Must be an octal number, it starts with 0.
- while (*CurPtr >= '0' && *CurPtr <= '7')
+ while (*CurPtr >= '0' && *CurPtr <= '9')
++CurPtr;
StringRef Result(TokStart, CurPtr - TokStart);
More information about the llvm-commits
mailing list