diff options
-rw-r--r-- | lib/Lex/Lexer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index 8bce589f17..8acfe2aef6 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -813,7 +813,8 @@ bool Lexer::SkipBCPLComment(Token &Result, const char *CurPtr) { } // Otherwise, eat the \n character. We don't care if this is a \n\r or - // \r\n sequence. + // \r\n sequence. This is an efficiency hack (because we know the \n can't + // contribute to another token), it isn't needed for correctness. ++CurPtr; // The next returned token is at the start of the line. |