diff options
author | Kevin Enderby <enderby@apple.com> | 2010-05-18 17:51:35 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2010-05-18 17:51:35 +0000 |
commit | d8ba292c9bc4e0927ea21304d735e27a43d296a6 (patch) | |
tree | 85e558f4392ced53425d550050c14c47928d495e /lib/MC/MCParser | |
parent | 6a8d2c6119aeb32ac914c3dd9b1263ebd0baa51f (diff) | |
download | external_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/MCParser')
-rw-r--r-- | lib/MC/MCParser/AsmLexer.cpp | 1 |
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; |