diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-10 23:54:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 23:54:56 +0000 |
commit | 9531c50c756f6eafd6d33c03017b25ab1f9e08dd (patch) | |
tree | 9b0520e1de3ea6e0f0b62da063167d785eba9bdd | |
parent | 9e6161cfd1131f13f2a12beb4408ba03cac83439 (diff) |
Add convenience ctor to BranchInst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3675 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/iTerminators.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index adf67abe45..85c2c8b4ef 100644 --- a/include/llvm/iTerminators.h +++ b/include/llvm/iTerminators.h @@ -69,8 +69,9 @@ class BranchInst : public TerminatorInst { BranchInst(const BranchInst &BI); public: // If cond = null, then is an unconditional br... - BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse = 0, Value *cond = 0, + BranchInst(BasicBlock *IfTrue, BasicBlock *IfFalse, Value *cond = 0, Instruction *InsertBefore = 0); + BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore = 0); virtual Instruction *clone() const { return new BranchInst(*this); } |