summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-08-04 19:31:26 +0000
committerChris Lattner <sabre@nondot.org>2011-08-04 19:31:26 +0000
commite8baa38e79486123f17406a9bfe2b53583db8eff (patch)
tree224722d1e98e80f3bb72778ef718edf3f18502e4 /llvm/lib
parent64b18eebc67f6dbf5a9e01804d3d4b14910b08d3 (diff)
downloadbcm5719-llvm-e8baa38e79486123f17406a9bfe2b53583db8eff.tar.gz
bcm5719-llvm-e8baa38e79486123f17406a9bfe2b53583db8eff.zip
allow \r's in .s files.
llvm-svn: 136908
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCParser/AsmLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmLexer.cpp b/llvm/lib/MC/MCParser/AsmLexer.cpp
index 0c1f8f0df77..bbb0bbc8b24 100644
--- a/llvm/lib/MC/MCParser/AsmLexer.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud