From 7f76baed5ef5383cb4d27df8864f305d728b75ae Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 1 Aug 2011 18:44:37 +0000 Subject: [PATCH] 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 --- utils/TableGen/FixedLenDecoderEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.34.1