Skip to content

Commit 54405a4

Browse files
committed
[ARC] Fix -Wunused-variable. NFC
1 parent 1c35973 commit 54405a4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/lib/Target/ARC/ARCInstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ enum TSFlagsConstants {
4444
void ARCInstrInfo::anchor() {}
4545

4646
ARCInstrInfo::ARCInstrInfo(const ARCSubtarget &ST)
47-
: ARCGenInstrInfo(ARC::ADJCALLSTACKDOWN, ARC::ADJCALLSTACKUP), ST(ST),
48-
RI(ST) {}
47+
: ARCGenInstrInfo(ARC::ADJCALLSTACKDOWN, ARC::ADJCALLSTACKUP), RI(ST) {}
4948

5049
static bool isZeroImm(const MachineOperand &Op) {
5150
return Op.isImm() && Op.getImm() == 0;

llvm/lib/Target/ARC/ARCInstrInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace llvm {
2424
class ARCSubtarget;
2525

2626
class ARCInstrInfo : public ARCGenInstrInfo {
27-
const ARCSubtarget &ST;
2827
const ARCRegisterInfo RI;
2928
virtual void anchor();
3029

0 commit comments

Comments
 (0)