Add an explicit abort so that the optimized build knows the function does
authorChris Lattner <sabre@nondot.org>
Fri, 10 May 2002 18:53:21 +0000 (18:53 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 May 2002 18:53:21 +0000 (18:53 +0000)
not return.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2604 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/iTerminators.h

index 58822aafa177df0b0145057e0cdd5ca1dab65582..fa1dbd6d8d3a39f9b6f85cfaf5aea30412793c6d 100644 (file)
@@ -50,6 +50,7 @@ public:
 
   virtual const BasicBlock *getSuccessor(unsigned idx) const {
     assert(0 && "ReturnInst has no successors!");
+    abort();
   }
   virtual unsigned getNumSuccessors() const { return 0; }