From 54405a49d868444958d1ee51eef8b943aaebebdc Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 24 Oct 2021 10:31:44 -0700 Subject: [PATCH] [ARC] Fix -Wunused-variable. NFC --- llvm/lib/Target/ARC/ARCInstrInfo.cpp | 3 +-- llvm/lib/Target/ARC/ARCInstrInfo.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Target/ARC/ARCInstrInfo.cpp b/llvm/lib/Target/ARC/ARCInstrInfo.cpp index a03eac3af267..6e8190ee7209 100644 --- a/llvm/lib/Target/ARC/ARCInstrInfo.cpp +++ b/llvm/lib/Target/ARC/ARCInstrInfo.cpp @@ -44,8 +44,7 @@ enum TSFlagsConstants { void ARCInstrInfo::anchor() {} ARCInstrInfo::ARCInstrInfo(const ARCSubtarget &ST) - : ARCGenInstrInfo(ARC::ADJCALLSTACKDOWN, ARC::ADJCALLSTACKUP), ST(ST), - RI(ST) {} + : ARCGenInstrInfo(ARC::ADJCALLSTACKDOWN, ARC::ADJCALLSTACKUP), RI(ST) {} static bool isZeroImm(const MachineOperand &Op) { return Op.isImm() && Op.getImm() == 0; diff --git a/llvm/lib/Target/ARC/ARCInstrInfo.h b/llvm/lib/Target/ARC/ARCInstrInfo.h index 65bf672abb6f..ebc02a93b124 100644 --- a/llvm/lib/Target/ARC/ARCInstrInfo.h +++ b/llvm/lib/Target/ARC/ARCInstrInfo.h @@ -24,7 +24,6 @@ namespace llvm { class ARCSubtarget; class ARCInstrInfo : public ARCGenInstrInfo { - const ARCSubtarget &ST; const ARCRegisterInfo RI; virtual void anchor();