allow \r's in .s files.

llvm-svn: 136908
This commit is contained in:
Chris Lattner 2011-08-04 19:31:26 +00:00
parent 64b18eebc6
commit e8baa38e79
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ AsmToken AsmLexer::LexLineComment() {
// FIXME: This is broken if we happen to a comment at the end of a file, which // FIXME: This is broken if we happen to a comment at the end of a file, which
// was .included, and which doesn't end with a newline. // was .included, and which doesn't end with a newline.
int CurChar = getNextChar(); int CurChar = getNextChar();
while (CurChar != '\n' && CurChar != '\n' && CurChar != EOF) while (CurChar != '\n' && CurChar != '\r' && CurChar != EOF)
CurChar = getNextChar(); CurChar = getNextChar();
if (CurChar == EOF) if (CurChar == EOF)