[llvm] f82967b - [M68k] Remove unused variable to fix MSVC warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon May 30 00:59:56 PDT 2022
Author: Simon Pilgrim
Date: 2022-05-30T08:59:49+01:00
New Revision: f82967b7866efb6af6e9f1bb471f4180e9844a65
URL: https://github.com/llvm/llvm-project/commit/f82967b7866efb6af6e9f1bb471f4180e9844a65
DIFF: https://github.com/llvm/llvm-project/commit/f82967b7866efb6af6e9f1bb471f4180e9844a65.diff
LOG: [M68k] Remove unused variable to fix MSVC warning. NFC.
Added:
Modified:
llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp b/llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp
index f43673e4f14d1..6b093623a106d 100644
--- a/llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp
+++ b/llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp
@@ -221,7 +221,6 @@ void M68kMCCodeEmitter::encodeInstruction(const MCInst &MI, raw_ostream &OS,
SmallVectorImpl<MCFixup> &Fixups,
const MCSubtargetInfo &STI) const {
unsigned Opcode = MI.getOpcode();
- const MCInstrDesc &Desc = MCII.get(Opcode);
LLVM_DEBUG(dbgs() << "EncodeInstruction: " << MCII.getName(Opcode) << "("
<< Opcode << ")\n");
More information about the llvm-commits
mailing list