mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +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() &&
|
assert(MI.getParent() && MI.getParent()->getParent() &&
|
||||||
"MI must be connected to a MachineFunction");
|
"MI must be connected to a MachineFunction");
|
||||||
const MachineFunction &MF = *MI.getParent()->getParent();
|
const MachineFunction &MF = *MI.getParent()->getParent();
|
||||||
const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo();
|
|
||||||
const MachineRegisterInfo &MRI = MF.getRegInfo();
|
|
||||||
|
|
||||||
for (unsigned Idx = 0; Idx < NumOperands; ++Idx) {
|
for (unsigned Idx = 0; Idx < NumOperands; ++Idx) {
|
||||||
const MachineOperand &MO = MI.getOperand(Idx);
|
const MachineOperand &MO = MI.getOperand(Idx);
|
||||||
@ -461,7 +459,8 @@ bool RegisterBankInfo::InstructionMapping::verify(
|
|||||||
continue;
|
continue;
|
||||||
// Register size in bits.
|
// Register size in bits.
|
||||||
// This size must match what the mapping expects.
|
// 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");
|
"Value mapping is invalid");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user