Fix more -Wunused-variable in non-asserts build.

llvm-svn: 267077
This commit is contained in:
David Blaikie 2016-04-21 23:24:09 +00:00
parent 62b98b6cce
commit f0f6c29cec
1 changed files with 2 additions and 3 deletions

View File

@ -444,8 +444,6 @@ bool RegisterBankInfo::InstructionMapping::verify(
assert(MI.getParent() && MI.getParent()->getParent() &&
"MI must be connected to a MachineFunction");
const MachineFunction &MF = *MI.getParent()->getParent();
const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
const MachineRegisterInfo &MRI = MF.getRegInfo();
for (unsigned Idx = 0; Idx < NumOperands; ++Idx) {
const MachineOperand &MO = MI.getOperand(Idx);
@ -461,7 +459,8 @@ bool RegisterBankInfo::InstructionMapping::verify(
continue;
// Register size in bits.
// This size must match what the mapping expects.
assert(MOMapping.verify(getSizeInBits(Reg, MRI, TRI)) &&
assert(MOMapping.verify(getSizeInBits(
Reg, MF.getRegInfo(), *MF.getSubtarget().getRegisterInfo())) &&
"Value mapping is invalid");
}
return true;