diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-20 18:11:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-20 18:11:56 +0000 |
commit | 593ba8f560b5bf8bf4a2a4d4fbd5bc678dadbebd (patch) | |
tree | e1fe91e157c9ddee60aaa9152f8feae91d208931 /include | |
parent | 4b74c8333495c609fa81421df32e46db616672e1 (diff) | |
download | external_llvm-593ba8f560b5bf8bf4a2a4d4fbd5bc678dadbebd.zip external_llvm-593ba8f560b5bf8bf4a2a4d4fbd5bc678dadbebd.tar.gz external_llvm-593ba8f560b5bf8bf4a2a4d4fbd5bc678dadbebd.tar.bz2 |
Somehow I forgot poor little UnwindInst
*sniff*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/iTerminators.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index 7cf14ac..56132ee 100644 --- a/include/llvm/iTerminators.h +++ b/include/llvm/iTerminators.h @@ -311,6 +311,9 @@ struct UnwindInst : public TerminatorInst { UnwindInst(Instruction *InsertBefore = 0) : TerminatorInst(Instruction::Unwind, InsertBefore) { } + UnwindInst(BasicBlock *InsertAtEnd) + : TerminatorInst(Instruction::Unwind, InsertAtEnd) { + } virtual Instruction *clone() const { return new UnwindInst(); } @@ -319,9 +322,7 @@ struct UnwindInst : public TerminatorInst { abort(); return 0; } - virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc) { - assert(0 && "UnwindInst has no successors!"); - } + virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc); virtual unsigned getNumSuccessors() const { return 0; } // Methods for support type inquiry through isa, cast, and dyn_cast: |