[llvm] 54405a4 - [ARC] Fix -Wunused-variable. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 24 10:31:49 PDT 2021
Author: Fangrui Song
Date: 2021-10-24T10:31:44-07:00
New Revision: 54405a49d868444958d1ee51eef8b943aaebebdc
URL: https://github.com/llvm/llvm-project/commit/54405a49d868444958d1ee51eef8b943aaebebdc
DIFF: https://github.com/llvm/llvm-project/commit/54405a49d868444958d1ee51eef8b943aaebebdc.diff
LOG: [ARC] Fix -Wunused-variable. NFC
Added:
Modified:
llvm/lib/Target/ARC/ARCInstrInfo.cpp
llvm/lib/Target/ARC/ARCInstrInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARC/ARCInstrInfo.cpp b/llvm/lib/Target/ARC/ARCInstrInfo.cpp
index a03eac3af2678..6e8190ee7209d 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 65bf672abb6fa..ebc02a93b1244 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();
More information about the llvm-commits
mailing list