mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Make sure to handle the case where emitPredicateMatch returns false. Noticed by inspection.
llvm-svn: 139317
This commit is contained in:
parent
16f9df1f05
commit
fd4451674b
@ -818,7 +818,8 @@ bool FilterChooser::emitSingletonDecoder(raw_ostream &o, unsigned &Indentation,
|
||||
// If we have matched all the well-known bits, just issue a return.
|
||||
if (Size == 0) {
|
||||
o.indent(Indentation) << "if (";
|
||||
emitPredicateMatch(o, Indentation, Opc);
|
||||
if (!emitPredicateMatch(o, Indentation, Opc))
|
||||
o << "1";
|
||||
o << ") {\n";
|
||||
o.indent(Indentation) << " MI.setOpcode(" << Opc << ");\n";
|
||||
std::vector<OperandInfo>& InsnOperands = Operands[Opc];
|
||||
|
Loading…
Reference in New Issue
Block a user