[llvm] 3642baf - [NFCI] Fix set-but-unused warning in X86DisassemblerTables.cpp
Dávid Bolvanský via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 02:31:41 PDT 2022
Author: Dávid Bolvanský
Date: 2022-03-24T10:31:29+01:00
New Revision: 3642baf5ddf21ff339280bd8c7b7e6503d2f4d2e
URL: https://github.com/llvm/llvm-project/commit/3642baf5ddf21ff339280bd8c7b7e6503d2f4d2e
DIFF: https://github.com/llvm/llvm-project/commit/3642baf5ddf21ff339280bd8c7b7e6503d2f4d2e.diff
LOG: [NFCI] Fix set-but-unused warning in X86DisassemblerTables.cpp
Added:
Modified:
llvm/utils/TableGen/X86DisassemblerTables.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/X86DisassemblerTables.cpp b/llvm/utils/TableGen/X86DisassemblerTables.cpp
index 81ddea99740d3..59565f3f0355c 100644
--- a/llvm/utils/TableGen/X86DisassemblerTables.cpp
+++ b/llvm/utils/TableGen/X86DisassemblerTables.cpp
@@ -673,7 +673,6 @@ void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2,
unsigned &i1, unsigned &i2,
unsigned &ModRMTableNum,
ModRMDecision &decision) const {
- static uint32_t sTableNumber = 0;
static uint32_t sEntryNumber = 1;
ModRMDecisionType dt = getDecisionType(decision);
@@ -753,8 +752,6 @@ void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2,
assert(sEntryNumber < 65536U &&
"Index into ModRMDecision is too large for uint16_t!");
(void)sEntryNumber;
-
- ++sTableNumber;
}
void DisassemblerTables::emitOpcodeDecision(raw_ostream &o1, raw_ostream &o2,
More information about the llvm-commits
mailing list