diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-10-15 04:27:37 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-10-15 04:27:37 +0000 |
commit | 8b54a1c68609a41fc1042767a465604dbf54c8c1 (patch) | |
tree | 5777f2a3218d04cb61d97fe560f3a77d92601c09 /clang/lib/Lex/TokenLexer.cpp | |
parent | ac03fb616f27bcc49455ba101602579cf1c54928 (diff) | |
download | bcm5719-llvm-8b54a1c68609a41fc1042767a465604dbf54c8c1.tar.gz bcm5719-llvm-8b54a1c68609a41fc1042767a465604dbf54c8c1.zip |
[Lex] Remove unused variables. No functionality change.
llvm-svn: 315845
Diffstat (limited to 'clang/lib/Lex/TokenLexer.cpp')
-rw-r--r-- | clang/lib/Lex/TokenLexer.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Lex/TokenLexer.cpp b/clang/lib/Lex/TokenLexer.cpp index c0883dd48e0..194ceecc070 100644 --- a/clang/lib/Lex/TokenLexer.cpp +++ b/clang/lib/Lex/TokenLexer.cpp @@ -184,18 +184,12 @@ void TokenLexer::stringifyVAOPTContents( // Perform token pasting (concatenation) prior to stringization. for (unsigned int CurTokenIdx = 0; CurTokenIdx != NumVAOptTokens; ++CurTokenIdx) { - const unsigned int PrevTokenIdx = CurTokenIdx; - if (VAOPTTokens[CurTokenIdx].is(tok::hashhash)) { assert(CurTokenIdx != 0 && "Can not have __VAOPT__ contents begin with a ##"); Token &LHS = VAOPTTokens[CurTokenIdx - 1]; pasteTokens(LHS, llvm::makeArrayRef(VAOPTTokens, NumVAOptTokens), CurTokenIdx); - // CurTokenIdx is either the same as NumTokens or one past the - // last token concatenated. - // PrevTokenIdx is the index of the hashhash - const unsigned NumTokensPastedTogether = CurTokenIdx - PrevTokenIdx + 1; // Replace the token prior to the first ## in this iteration. ConcatenatedVAOPTResultToks.back() = LHS; if (CurTokenIdx == NumVAOptTokens) |