Add an assertion to verify that a copy was actually emitted.
llvm-svn: 68953
This commit is contained in:
parent
712a351c42
commit
85abd983f2
|
@ -857,7 +857,8 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
|
|||
ReMatRegs.set(regB);
|
||||
++NumReMats;
|
||||
} else {
|
||||
TII->copyRegToReg(*mbbi, mi, regA, regB, rc, rc);
|
||||
bool Emitted = TII->copyRegToReg(*mbbi, mi, regA, regB, rc, rc);
|
||||
assert(Emitted && "Unable to issue a copy instruction!\n");
|
||||
}
|
||||
|
||||
MachineBasicBlock::iterator prevMI = prior(mi);
|
||||
|
|
Loading…
Reference in New Issue