From 625396c63a795dada4d1568975d059a20c7c7b81 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 May 2002 18:53:21 +0000 Subject: [PATCH] Add an explicit abort so that the optimized build knows the function does not return. llvm-svn: 2604 --- include/llvm/iTerminators.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index 58822aafa17..fa1dbd6d8d3 100644 --- a/include/llvm/iTerminators.h +++ b/include/llvm/iTerminators.h @@ -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; }