From 7a4f004a77421af876152281b92c4f8ea24afb2d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 12 Oct 2008 00:23:07 +0000 Subject: [PATCH] improve a comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57389 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/Lexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.