summaryrefslogtreecommitdiff
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
commit120fd2dd6dd00dfab002ad4d6a39e0445dd6894d (patch)
tree8db4bff2fc0196e621f635d55a6ce788864425c8
parent5ea5c61589e62a1068746ddcc52c6aa39ec0f8b0 (diff)
Lex, and then fail on invalid constants.
Testcase forthcoming. rdar://8490596 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129309 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/MC/MCParser/AsmLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmLexer.cpp b/lib/MC/MCParser/AsmLexer.cpp
index 6bd89860d51..0fa782b1d9c 100644
--- a/lib/MC/MCParser/AsmLexer.cpp
+++ b/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);