1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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 95d001461b
commit a2aacc73f4

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;