<div dir="ltr">Test?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 1:32 PM, Erich Keane via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: erichkeane<br>
Date: Tue Sep  5 10:32:36 2017<br>
New Revision: 312542<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=312542&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=312542&view=rev</a><br>
Log:<br>
[Preprocessor] Correct internal token parsing of newline characters in CRLF<br>
<br>
Correct implementation:  Apparently I managed in r311683 to submit the wrong<br>
version of the patch for this, so I'm correcting it now.<br>
<br>
Differential Revision: <a href="https://reviews.llvm.org/D37079" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D37079</a><br>
<br>
Modified:<br>
    cfe/trunk/lib/Lex/Lexer.cpp<br>
<br>
Modified: cfe/trunk/lib/Lex/Lexer.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=312542&r1=312541&r2=312542&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/lib/Lex/<wbr>Lexer.cpp?rev=312542&r1=<wbr>312541&r2=312542&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/lib/Lex/Lexer.cpp (original)<br>
+++ cfe/trunk/lib/Lex/Lexer.cpp Tue Sep  5 10:32:36 2017<br>
@@ -3071,10 +3071,11 @@ LexNextToken:<br>
     Kind = tok::unknown;<br>
     break;<br>
<br>
-  case '\n':<br>
   case '\r':<br>
-    if (CurPtr[0] != Char && (CurPtr[0] == '\n' || CurPtr[0] == '\r'))<br>
+    if (CurPtr[0] == '\n')<br>
       Char = getAndAdvanceChar(CurPtr, Result);<br>
+    LLVM_FALLTHROUGH;<br>
+  case '\n':<br>
     // If we are inside a preprocessor directive and we see the end of line,<br>
     // we know we are done with the directive, so return an EOD token.<br>
     if (ParsingPreprocessorDirective) {<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>