diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-10-21 00:13:58 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-10-21 00:13:58 +0000 |
commit | dd5e1eb3d54f5c045a413152fe63846176aa9bea (patch) | |
tree | a0b24a013171b125668797cb02c7df45173c78b1 /lib | |
parent | 616b9bb30f255c7531c70f3ece80402e2b0ed882 (diff) | |
download | external_llvm-dd5e1eb3d54f5c045a413152fe63846176aa9bea.zip external_llvm-dd5e1eb3d54f5c045a413152fe63846176aa9bea.tar.gz external_llvm-dd5e1eb3d54f5c045a413152fe63846176aa9bea.tar.bz2 |
Be crazy and assert in case of unsupported modifier passed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp b/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp index 59b448a..8f1ee81 100644 --- a/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp +++ b/lib/Target/MSP430/AsmPrinter/MSP430InstPrinter.cpp @@ -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()); |