diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:23:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-12 00:23:07 +0000 |
commit | 7a4f004a77421af876152281b92c4f8ea24afb2d (patch) | |
tree | 3c5e9832053c43a8264fbf6db6612324a11e8925 | |
parent | a7996d43c729787214aad70c97b3f3db4ff7ba66 (diff) |
improve a comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57389 91177308-0d34-0410-b5e6-96231b3b80d8
-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. |