forked from OSchip/llvm-project
Rather than asserting. Dump out the MI that we are not able to encode and abort.
llvm-svn: 47933
This commit is contained in:
parent
da7897c4e1
commit
801bfb2cf7
|
@ -807,5 +807,10 @@ void Emitter::emitInstruction(const MachineInstr &MI,
|
|||
break;
|
||||
}
|
||||
|
||||
assert((Desc->isVariadic() || CurOp == NumOps) && "Unknown encoding!");
|
||||
if (!Desc->isVariadic() && CurOp != NumOps) {
|
||||
cerr << "Cannot encode: ";
|
||||
MI.dump();
|
||||
cerr << '\n';
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue