aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-05-18 17:51:35 +0000
committerKevin Enderby <enderby@apple.com>2010-05-18 17:51:35 +0000
commitd8ba292c9bc4e0927ea21304d735e27a43d296a6 (patch)
tree85e558f4392ced53425d550050c14c47928d495e /lib/MC
parent6a8d2c6119aeb32ac914c3dd9b1263ebd0baa51f (diff)
downloadexternal_llvm-d8ba292c9bc4e0927ea21304d735e27a43d296a6.zip
external_llvm-d8ba292c9bc4e0927ea21304d735e27a43d296a6.tar.gz
external_llvm-d8ba292c9bc4e0927ea21304d735e27a43d296a6.tar.bz2
Fixed the problem with a branch to "0b" that was not parsed by llvm-mc
correctly. The Lexer was incorrectly eating the newline casusing it to branch to address 0. Updated the test case to use a "0:" label and a branch to "0b". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCParser/AsmLexer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmLexer.cpp b/lib/MC/MCParser/AsmLexer.cpp
index e74eac5..32b446f 100644
--- a/lib/MC/MCParser/AsmLexer.cpp
+++ b/lib/MC/MCParser/AsmLexer.cpp
@@ -157,7 +157,6 @@ AsmToken AsmLexer::LexDigit() {
if (CurPtr[0] == '\n') {
--CurPtr;
StringRef Result(TokStart, CurPtr - TokStart);
- ++CurPtr;
return AsmToken(AsmToken::Integer, Result, 0);
}
const char *NumStart = CurPtr;