diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-19 18:48:52 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-19 18:48:52 +0000 |
commit | e0d0908356fca6f5ad1a880e3c2765ce5cb146f3 (patch) | |
tree | f8307ea1b7786182b79b288fe58a0bca062d9471 /llvm/lib/MC/MCParser/AsmParser.cpp | |
parent | 522b894350876c2f11534544e89a96c29f009d75 (diff) | |
download | bcm5719-llvm-e0d0908356fca6f5ad1a880e3c2765ce5cb146f3.tar.gz bcm5719-llvm-e0d0908356fca6f5ad1a880e3c2765ce5cb146f3.zip |
Fix parsing of a line with only a # in it.
llvm-svn: 142537
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 4e8e15c7d6c..d7ee1c4ca3e 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -1228,7 +1228,8 @@ bool AsmParser::ParseStatement() { /// EatToEndOfLine uses the Lexer to eat the characters to the end of the line /// since they may not be able to be tokenized to get to the end of line token. void AsmParser::EatToEndOfLine() { - Lexer.LexUntilEndOfLine(); + if (!Lexer.is(AsmToken::EndOfStatement)) + Lexer.LexUntilEndOfLine(); // Eat EOL. Lex(); } |