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";