HexagonCopyToCombine.cpp: Silence two warnings, -Wunused-variable, with -Asserts.

llvm-svn: 154759
This commit is contained in:
NAKAMURA Takumi 2012-04-15 05:33:43 +00:00
parent ddf2dc407e
commit 0133680b3d

View File

@ -213,6 +213,7 @@ bool HexagonCopyToCombine::isSafeToMoveTogether(MachineInstr *I1,
if (KillingInstr) {
bool Added = KillingInstr->addRegisterKilled(KilledOperand, TRI, true);
assert(Added && "Must successfully update kill flag");
(void)Added;
removeKillInfo(I2, KilledOperand);
}
DoInsertAtI1 = true;
@ -268,6 +269,7 @@ bool HexagonCopyToCombine::isSafeToMoveTogether(MachineInstr *I1,
// the new COMBINE instruction.
bool Added = I1->addRegisterKilled(KilledOperand, TRI);
assert(Added && "Must successfully update kill flag");
(void)Added;
}
DoInsertAtI1 = false;
}