summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-18 18:56:29 +0000
committerChris Lattner <sabre@nondot.org>2009-02-18 18:56:29 +0000
commit57a09cfcbcf789a342d68ffa538f240d47bde4ab (patch)
treef5245caafc602e40f4b98b6227219e60b65e0d8c /clang/lib/Lex
parentf68490a3f7ba2aee731b4de52cd4603395a0f1ad (diff)
downloadbcm5719-llvm-57a09cfcbcf789a342d68ffa538f240d47bde4ab.tar.gz
bcm5719-llvm-57a09cfcbcf789a342d68ffa538f240d47bde4ab.zip
update comment.
llvm-svn: 64939
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 789d9312215..31a040674f7 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -291,11 +291,7 @@ void Preprocessor::CreateString(const char *Buf, unsigned Len, Token &Tok,
/// token, return a new location that specifies a character within the token.
SourceLocation Preprocessor::AdvanceToTokenCharacter(SourceLocation TokStart,
unsigned CharNo) {
- // If they request the first char of the token, we're trivially done. If this
- // is a macro expansion, it doesn't make sense to point to a character within
- // the instantiation point (the name). We could point to the source
- // character, but without also pointing to instantiation info, this is
- // confusing.
+ // If they request the first char of the token, we're trivially done.
if (CharNo == 0) return TokStart;
// Figure out how many physical characters away the specified instantiation
OpenPOWER on IntegriCloud