summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-01-07 20:29:02 +0000
committerJay Foad <jay.foad@gmail.com>2011-01-07 20:29:02 +0000
commit8e3914d12e939d7c686bd121b0e2b2d39ed126d2 (patch)
tree195a8c211ef2623f284982afa3fb2ac5c595ed00 /include/llvm/Instructions.h
parent43eaadeea5217995c153078c04b77183d4c8c494 (diff)
downloadllvm-8e3914d12e939d7c686bd121b0e2b2d39ed126d2.tar.gz
llvm-8e3914d12e939d7c686bd121b0e2b2d39ed126d2.tar.bz2
llvm-8e3914d12e939d7c686bd121b0e2b2d39ed126d2.tar.xz
Simplify the allocation and freeing of Users' operand lists, now that
every BranchInst has a fixed number of operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 626dd0ee45..7a53c429a1 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -2068,22 +2068,20 @@ protected:
virtual BranchInst *clone_impl() const;
public:
static BranchInst *Create(BasicBlock *IfTrue, Instruction *InsertBefore = 0) {
- return new(1, true) BranchInst(IfTrue, InsertBefore);
+ return new(1) BranchInst(IfTrue, InsertBefore);
}
static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *IfFalse,
Value *Cond, Instruction *InsertBefore = 0) {
return new(3) BranchInst(IfTrue, IfFalse, Cond, InsertBefore);
}
static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *InsertAtEnd) {
- return new(1, true) BranchInst(IfTrue, InsertAtEnd);
+ return new(1) BranchInst(IfTrue, InsertAtEnd);
}
static BranchInst *Create(BasicBlock *IfTrue, BasicBlock *IfFalse,
Value *Cond, BasicBlock *InsertAtEnd) {
return new(3) BranchInst(IfTrue, IfFalse, Cond, InsertAtEnd);
}
- ~BranchInst();
-
/// Transparently provide more efficient getOperand methods.
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);