summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-12 00:23:07 +0000
committerChris Lattner <sabre@nondot.org>2008-10-12 00:23:07 +0000
commit87e97ea7b8946b3cb4ef223830c598b981d0f824 (patch)
tree0097025cfff67f6222ab42cc0afed9ca8c9df42b /clang/lib/Lex/Lexer.cpp
parentc46186e890b0975bf6e160629e8e12944dfc1a68 (diff)
downloadbcm5719-llvm-87e97ea7b8946b3cb4ef223830c598b981d0f824.tar.gz
bcm5719-llvm-87e97ea7b8946b3cb4ef223830c598b981d0f824.zip
improve a comment.
llvm-svn: 57389
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r--clang/lib/Lex/Lexer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index 8bce589f177..8acfe2aef6a 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud