Ignore all implicit reg operands
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 21 Oct 2009 00:12:44 +0000 (00:12 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 21 Oct 2009 00:12:44 +0000 (00:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84708 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp

index e9b0c92cf4ef84fe7b12402fc45fe110d1f4193d..175b6b3f3f7330b7ee67688a21635509da114b5d 100644 (file)
@@ -100,6 +100,8 @@ void MSP430MCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
       MI->dump();
       assert(0 && "unknown operand type");
     case MachineOperand::MO_Register:
+      // Ignore all implicit register operands.
+      if (MO.isImplicit()) continue;
       MCOp = MCOperand::CreateReg(MO.getReg());
       break;
     case MachineOperand::MO_Immediate: