From 4ecbe74c2758ebebd7a5d4bd95d2b3eb132fa234 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 10 Sep 2002 23:54:56 +0000 Subject: [PATCH] Add convenience ctor to BranchInst llvm-svn: 3675 --- llvm/include/llvm/iTerminators.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/iTerminators.h b/llvm/include/llvm/iTerminators.h index adf67abe45de..85c2c8b4efdf 100644 --- a/llvm/include/llvm/iTerminators.h +++ b/llvm/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); }