Be crazy and assert in case of unsupported modifier passed.
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 21 Oct 2009 00:13:58 +0000 (00:13 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 21 Oct 2009 00:13:58 +0000 (00:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84712 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp

index 59b448aa8727c7b037f7dba8436e359a89f2a428..8f1ee81af049e56c420393db676801bd62dc5d0e 100644 (file)
@@ -47,6 +47,7 @@ void MSP430InstPrinter::printPCRelImmOperand(const MCInst *MI, unsigned OpNo) {
 
 void MSP430InstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
                                      const char *Modifier) {
+  assert((Modifier == 0 || Modifier[0] == 0) && "No modifiers supported");
   const MCOperand &Op = MI->getOperand(OpNo);
   if (Op.isReg()) {
     O << getRegisterName(Op.getReg());