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:
parent
95d001461b
commit
a2aacc73f4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user