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; }