commit | de087372732c19ef097a04c39942a047ca3553e8 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Sat Jun 21 22:08:46 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Sat Jun 21 22:08:46 2008 +0000 |
tree | 4663a32ab1446ba7e8a00fb790052fe044ae23f5 | |
parent | 3247c1a560a38bb69accc1a0e6352459ab009e34 [diff] [blame] |
Use Instruction::eraseFromParent(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52606 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/RaiseAllocations.cpp b/lib/Transforms/IPO/RaiseAllocations.cpp index 58fd682..daf8ef0 100644 --- a/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/lib/Transforms/IPO/RaiseAllocations.cpp
@@ -177,7 +177,7 @@ BranchInst::Create(II->getNormalDest(), I); // Delete the old call site - MI->getParent()->getInstList().erase(I); + I->eraseFromParent(); Changed = true; ++NumRaised; }