From: Chris Lattner Date: Tue, 10 Sep 2002 23:54:56 +0000 (+0000) Subject: Add convenience ctor to BranchInst X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9531c50c756f6eafd6d33c03017b25ab1f9e08dd;p=oota-llvm.git Add convenience ctor to BranchInst git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3675 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index adf67abe45d..85c2c8b4efd 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); }