[PATCH] D124339: [NFC][Clang][Pragma] Remove unused variables
Senran Zhang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 23 23:51:10 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGae76eb32a598: [NFC][Clang][Pragma] Remove unused variables (authored by zsrkmyn).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124339/new/
https://reviews.llvm.org/D124339
Files:
clang/lib/Lex/Pragma.cpp
Index: clang/lib/Lex/Pragma.cpp
===================================================================
--- clang/lib/Lex/Pragma.cpp
+++ clang/lib/Lex/Pragma.cpp
@@ -1944,8 +1944,6 @@
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 @@
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) << "(";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124339.424768.patch
Type: text/x-patch
Size: 800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220424/2346cc9b/attachment.bin>
More information about the cfe-commits
mailing list