diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-25 15:39:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 15:39:09 +0000 |
commit | 47d3e261398457c02b9891f9a3c1eb654411c45b (patch) | |
tree | 654878c231fbbc0b9e3d1d924d301f815005f4f0 /include/llvm/Support/InstVisitor.h | |
parent | b2e80a69514485c36442ea849063313e6db13e09 (diff) | |
download | llvm-47d3e261398457c02b9891f9a3c1eb654411c45b.tar.gz llvm-47d3e261398457c02b9891f9a3c1eb654411c45b.tar.bz2 llvm-47d3e261398457c02b9891f9a3c1eb654411c45b.tar.xz |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/InstVisitor.h')
-rw-r--r-- | include/llvm/Support/InstVisitor.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Support/InstVisitor.h b/include/llvm/Support/InstVisitor.h index 883a6fe4af..1876415f13 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(); } } |