mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
Rather than asserting. Dump out the MI that we are not able to encode and abort.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34bc178e4d
commit
0b21390a86
@ -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
Block a user