From: Chris Lattner Date: Thu, 25 Jul 2002 15:39:09 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=47d3e261398457c02b9891f9a3c1eb654411c45b;p=oota-llvm.git *** empty log message *** git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3082 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/InstVisitor.h b/include/llvm/Support/InstVisitor.h index 883a6fe4afc..1876415f137 100644 --- a/include/llvm/Support/InstVisitor.h +++ b/include/llvm/Support/InstVisitor.h @@ -101,13 +101,12 @@ struct InstVisitor { // RetTy visit(Instruction &I) { switch (I.getOpcode()) { + default: assert(0 && "Unknown instruction type encountered!"); + abort(); // Build the switch statement using the Instruction.def file... #define HANDLE_INST(NUM, OPCODE, CLASS) \ case Instruction::OPCODE:return ((SubClass*)this)->visit##OPCODE((CLASS&)I); #include "llvm/Instruction.def" - - default: assert(0 && "Unknown instruction type encountered!"); - abort(); } }