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 | 4ecbe74c2758ebebd7a5d4bd95d2b3eb132fa234 (patch) | |
| tree | b193b88db0b2d9c9d9683e4e0f23fad76b0f58ca /llvm | |
| parent | cbc532603a5418506fa38ee8eef3225375813e59 (diff) | |
| download | bcm5719-llvm-4ecbe74c2758ebebd7a5d4bd95d2b3eb132fa234.tar.gz bcm5719-llvm-4ecbe74c2758ebebd7a5d4bd95d2b3eb132fa234.zip | |
Add convenience ctor to BranchInst
llvm-svn: 3675
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/iTerminators.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/iTerminators.h b/llvm/include/llvm/iTerminators.h index adf67abe45d..85c2c8b4efd 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); } |

