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:
Dan Gohman 2008-06-09 14:09:13 +00:00
parent e8e3b5585a
commit 26825a84e9

View File

@ -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("