diff options
Diffstat (limited to 'lib/Transforms/IPO/RaiseAllocations.cpp')
-rw-r--r-- | lib/Transforms/IPO/RaiseAllocations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/RaiseAllocations.cpp b/lib/Transforms/IPO/RaiseAllocations.cpp index e284009..1f12fcf 100644 --- a/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/lib/Transforms/IPO/RaiseAllocations.cpp @@ -175,7 +175,7 @@ bool RaiseAllocations::runOnModule(Module &M) { // If the old instruction was an invoke, add an unconditional branch // before the invoke, which will become the new terminator. if (InvokeInst *II = dyn_cast<InvokeInst>(I)) - new BranchInst(II->getNormalDest(), I); + BranchInst::Create(II->getNormalDest(), I); // Delete the old call site MI->getParent()->getInstList().erase(I); @@ -227,7 +227,7 @@ bool RaiseAllocations::runOnModule(Module &M) { // If the old instruction was an invoke, add an unconditional branch // before the invoke, which will become the new terminator. if (InvokeInst *II = dyn_cast<InvokeInst>(I)) - new BranchInst(II->getNormalDest(), I); + BranchInst::Create(II->getNormalDest(), I); // Delete the old call site if (I->getType() != Type::VoidTy) |