mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-11 02:21:40 +00:00
The FixedLenDecoder needs to gracefully handle failing per-instruction decoder hooks in addition to per-operand decoder hooks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81fd0ba8ab
commit
5f801ba6ef
@ -776,8 +776,8 @@ bool FilterChooser::emitSingletonDecoder(raw_ostream &o, unsigned &Indentation,
|
|||||||
I = InsnOperands.begin(), E = InsnOperands.end(); I != E; ++I) {
|
I = InsnOperands.begin(), E = InsnOperands.end(); I != E; ++I) {
|
||||||
// If a custom instruction decoder was specified, use that.
|
// If a custom instruction decoder was specified, use that.
|
||||||
if (I->numFields() == 0 && I->Decoder.size()) {
|
if (I->numFields() == 0 && I->Decoder.size()) {
|
||||||
o.indent(Indentation) << " " << I->Decoder
|
o.indent(Indentation) << " if (!" << I->Decoder
|
||||||
<< "(MI, insn, Address, Decoder);\n";
|
<< "(MI, insn, Address, Decoder)) return false;\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user