Silence some "initialized but unused" warnings from MSVC -- the function being called is a static function, so there's no need for an instance variable. NFC.

llvm-svn: 266616
This commit is contained in:
Aaron Ballman 2016-04-18 14:47:19 +00:00
parent ca94d0ec0c
commit 2eeefe8ed8
1 changed files with 2 additions and 13 deletions

View File

@ -235,13 +235,7 @@ bool SIRegisterInfo::requiresVirtualBaseRegisters(
int64_t SIRegisterInfo::getFrameIndexInstrOffset(const MachineInstr *MI,
int Idx) const {
const MachineFunction *MF = MI->getParent()->getParent();
const AMDGPUSubtarget &Subtarget = MF->getSubtarget<AMDGPUSubtarget>();
const SIInstrInfo *TII
= static_cast<const SIInstrInfo *>(Subtarget.getInstrInfo());
if (!TII->isMUBUF(*MI))
if (!SIInstrInfo::isMUBUF(*MI))
return 0;
assert(Idx == AMDGPU::getNamedOperandIdx(MI->getOpcode(),
@ -349,12 +343,7 @@ void SIRegisterInfo::resolveFrameIndex(MachineInstr &MI, unsigned BaseReg,
bool SIRegisterInfo::isFrameOffsetLegal(const MachineInstr *MI,
unsigned BaseReg,
int64_t Offset) const {
const MachineFunction *MF = MI->getParent()->getParent();
const AMDGPUSubtarget &Subtarget = MF->getSubtarget<AMDGPUSubtarget>();
const SIInstrInfo *TII
= static_cast<const SIInstrInfo *>(Subtarget.getInstrInfo());
return TII->isMUBUF(*MI) && isUInt<12>(Offset);
return SIInstrInfo::isMUBUF(*MI) && isUInt<12>(Offset);
}
const TargetRegisterClass *SIRegisterInfo::getPointerRegClass(