Move variable that's unused in an NDEBUG build inside the DEBUG() macro, fixing
lib/CodeGen/RegAllocGreedy.cpp:233: error: unused variable 'TRC' [-Wunused-variable] llvm-svn: 121594
This commit is contained in:
parent
235c276442
commit
07a95f8f06
|
@ -230,8 +230,10 @@ unsigned RAGreedy::selectOrSplit(LiveInterval &VirtReg,
|
||||||
SmallVector<unsigned, 8> PhysRegSpillCands, ReassignCands;
|
SmallVector<unsigned, 8> PhysRegSpillCands, ReassignCands;
|
||||||
|
|
||||||
// Check for an available register in this class.
|
// Check for an available register in this class.
|
||||||
const TargetRegisterClass *TRC = MRI->getRegClass(VirtReg.reg);
|
DEBUG({
|
||||||
DEBUG(dbgs() << "RegClass: " << TRC->getName() << ' ');
|
const TargetRegisterClass *TRC = MRI->getRegClass(VirtReg.reg);
|
||||||
|
dbgs() << "RegClass: " << TRC->getName() << ' ');
|
||||||
|
});
|
||||||
|
|
||||||
AllocationOrder Order(VirtReg.reg, *VRM, ReservedRegs);
|
AllocationOrder Order(VirtReg.reg, *VRM, ReservedRegs);
|
||||||
while (unsigned PhysReg = Order.next()) {
|
while (unsigned PhysReg = Order.next()) {
|
||||||
|
@ -324,4 +326,3 @@ bool RAGreedy::runOnMachineFunction(MachineFunction &mf) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue