[clang] ae76eb3 - [NFC][Clang][Pragma] Remove unused variables
Senran Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 23 23:51:07 PDT 2022
Author: Senran Zhang
Date: 2022-04-24T14:50:59+08:00
New Revision: ae76eb32a5988c1f4ebb07e7e5eb9de2b036e194
URL: https://github.com/llvm/llvm-project/commit/ae76eb32a5988c1f4ebb07e7e5eb9de2b036e194
DIFF: https://github.com/llvm/llvm-project/commit/ae76eb32a5988c1f4ebb07e7e5eb9de2b036e194.diff
LOG: [NFC][Clang][Pragma] Remove unused variables
Reviewed By: beanz
Differential Revision: https://reviews.llvm.org/D124339
Added:
Modified:
clang/lib/Lex/Pragma.cpp
Removed:
################################################################################
diff --git a/clang/lib/Lex/Pragma.cpp b/clang/lib/Lex/Pragma.cpp
index 5a1b999505426..fb4f2dc457581 100644
--- a/clang/lib/Lex/Pragma.cpp
+++ b/clang/lib/Lex/Pragma.cpp
@@ -1944,8 +1944,6 @@ struct PragmaRegionHandler : public PragmaHandler {
static IdentifierInfo *HandleMacroAnnotationPragma(Preprocessor &PP, Token &Tok,
const char *Pragma,
std::string &MessageString) {
- std::string Macro;
-
PP.Lex(Tok);
if (Tok.isNot(tok::l_paren)) {
PP.Diag(Tok, diag::err_expected) << "(";
@@ -2034,8 +2032,6 @@ struct PragmaFinalHandler : public PragmaHandler {
void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
Token &Tok) override {
- std::string Macro;
-
PP.Lex(Tok);
if (Tok.isNot(tok::l_paren)) {
PP.Diag(Tok, diag::err_expected) << "(";
More information about the cfe-commits
mailing list