Add a textual message to the assert.

llvm-svn: 121349
This commit is contained in:
Jim Grosbach 2010-12-09 01:23:51 +00:00
parent ed40288eb4
commit 6233189713
1 changed files with 2 additions and 1 deletions

View File

@ -720,7 +720,8 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) {
case ARM::t2ADDrSPi12:
case ARM::t2SUBrSPi:
case ARM::t2SUBrSPi12:
assert (MI->getOperand(1).getReg() == ARM::SP);
assert ((MI->getOperand(1).getReg() == ARM::SP) &&
"Unexpected source register!");
break;
case ARM::t2MOVi32imm: assert(0 && "Should be lowered by thumb2it pass");