mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Abort on an unrecognized opcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8e3b5585a
commit
26825a84e9
@ -1065,6 +1065,10 @@ namespace {
|
||||
}
|
||||
|
||||
switch (I->getOpcode()) {
|
||||
default:
|
||||
error("Invalid instruction");
|
||||
break;
|
||||
|
||||
case Instruction::Ret: {
|
||||
const ReturnInst* ret = cast<ReturnInst>(I);
|
||||
Out << "ReturnInst::Create("
|
||||
|
Loading…
Reference in New Issue
Block a user