aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCParser/AsmLexer.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-11 22:24:56 +0000
committerEric Christopher <echristo@apple.com>2011-04-11 22:24:56 +0000
commit64749f2a893d42421f3089a643576dad1d564620 (patch)
tree7dd781490ded5e27e532cc50d0f17a1e6733a19d /llvm/lib/MC/MCParser/AsmLexer.cpp
parent8ef59e5c03c937056cd0282fe9747be2978a973e (diff)
downloadllvm-64749f2a893d42421f3089a643576dad1d564620.zip
llvm-64749f2a893d42421f3089a643576dad1d564620.tar.gz
llvm-64749f2a893d42421f3089a643576dad1d564620.tar.bz2
Lex, and then fail on invalid constants.
Testcase forthcoming. rdar://8490596 llvm-svn: 129309
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmLexer.cpp')
-rw-r--r--llvm/lib/MC/MCParser/AsmLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmLexer.cpp b/llvm/lib/MC/MCParser/AsmLexer.cpp
index 6bd8986..0fa782b 100644
--- a/llvm/lib/MC/MCParser/AsmLexer.cpp
+++ b/llvm/lib/MC/MCParser/AsmLexer.cpp
@@ -251,7 +251,7 @@ AsmToken AsmLexer::LexDigit() {
}
// 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);