From: Chris Lattner Date: Thu, 4 Aug 2011 19:31:26 +0000 (+0000) Subject: allow \r's in .s files. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0ecd825e54f2235c133b44c967a612551633106c;p=oota-llvm.git allow \r's in .s files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136908 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCParser/AsmLexer.cpp b/lib/MC/MCParser/AsmLexer.cpp index 0c1f8f0df77..bbb0bbc8b24 100644 --- a/lib/MC/MCParser/AsmLexer.cpp +++ b/lib/MC/MCParser/AsmLexer.cpp @@ -146,7 +146,7 @@ AsmToken AsmLexer::LexLineComment() { // 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. int CurChar = getNextChar(); - while (CurChar != '\n' && CurChar != '\n' && CurChar != EOF) + while (CurChar != '\n' && CurChar != '\r' && CurChar != EOF) CurChar = getNextChar(); if (CurChar == EOF)