[ARC] Fix -Wunused-variable. NFC

This commit is contained in:
Fangrui Song 2021-10-24 10:31:44 -07:00
parent 1c35973c77
commit 54405a49d8
2 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -24,7 +24,6 @@ namespace llvm {
class ARCSubtarget;
class ARCInstrInfo : public ARCGenInstrInfo {
const ARCSubtarget &ST;
const ARCRegisterInfo RI;
virtual void anchor();