From: Owen Anderson Date: Mon, 1 Aug 2011 18:44:37 +0000 (+0000) Subject: Enhance the fixed length disassembler to better handle operand decoding failures. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7f76baed5ef5383cb4d27df8864f305d728b75ae;p=oota-llvm.git Enhance the fixed length disassembler to better handle operand decoding failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136635 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp index b87634bfee4..5d42e71e5e0 100644 --- a/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -744,8 +744,8 @@ void FilterChooser::emitBinaryParser(raw_ostream &o, unsigned &Indentation, } if (Decoder != "") - o.indent(Indentation) << " " << Decoder - << "(MI, tmp, Address, Decoder);\n"; + o.indent(Indentation) << " if (!" << Decoder + << "(MI, tmp, Address, Decoder)) return false;\n"; else o.indent(Indentation) << " MI.addOperand(MCOperand::CreateImm(tmp));\n";