commit | 26825a84e97790adaffc55c6101b9fe2524fe1b7 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jun 09 14:09:13 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jun 09 14:09:13 2008 +0000 |
tree | f38cb6de19e545fa07daa345b11f61576dfb1d8b | |
parent | e8e3b5585a6a587efeaac306fe966f7d6859d982 [diff] [blame] |
Abort on an unrecognized opcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52146 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 22dd305..8b45030 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -1065,6 +1065,10 @@ } switch (I->getOpcode()) { + default: + error("Invalid instruction"); + break; + case Instruction::Ret: { const ReturnInst* ret = cast<ReturnInst>(I); Out << "ReturnInst::Create("