Be crazy and assert in case of unsupported modifier passed.

llvm-svn: 84712
This commit is contained in:
Anton Korobeynikov 2009-10-21 00:13:58 +00:00
parent 11074fa73e
commit e43af4a085
1 changed files with 1 additions and 0 deletions

View 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());