diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-10 18:53:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-10 18:53:21 +0000 |
commit | cba7a1545afa28be675ad47add95abe64d9e0bcc (patch) | |
tree | ae23d142566252c04a0f13f16dfb1c160ec807b4 /include | |
parent | 18f4701b2b984e1eb92a2d4c4e6739395dec4b78 (diff) | |
download | external_llvm-cba7a1545afa28be675ad47add95abe64d9e0bcc.zip external_llvm-cba7a1545afa28be675ad47add95abe64d9e0bcc.tar.gz external_llvm-cba7a1545afa28be675ad47add95abe64d9e0bcc.tar.bz2 |
Add an explicit abort so that the optimized build knows the function does
not return.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/iTerminators.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index 58822aa..fa1dbd6 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; } |