diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-21 22:08:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-21 22:08:46 +0000 |
commit | de087372732c19ef097a04c39942a047ca3553e8 (patch) | |
tree | 4663a32ab1446ba7e8a00fb790052fe044ae23f5 /lib/Transforms/IPO/RaiseAllocations.cpp | |
parent | 3247c1a560a38bb69accc1a0e6352459ab009e34 (diff) | |
download | external_llvm-de087372732c19ef097a04c39942a047ca3553e8.tar.gz external_llvm-de087372732c19ef097a04c39942a047ca3553e8.tar.bz2 external_llvm-de087372732c19ef097a04c39942a047ca3553e8.zip |
Use Instruction::eraseFromParent().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/RaiseAllocations.cpp')
-rw-r--r-- | lib/Transforms/IPO/RaiseAllocations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/RaiseAllocations.cpp b/lib/Transforms/IPO/RaiseAllocations.cpp index 58fd682eb7..daf8ef0005 100644 --- a/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/lib/Transforms/IPO/RaiseAllocations.cpp @@ -177,7 +177,7 @@ bool RaiseAllocations::runOnModule(Module &M) { BranchInst::Create(II->getNormalDest(), I); // Delete the old call site - MI->getParent()->getInstList().erase(I); + I->eraseFromParent(); Changed = true; ++NumRaised; } |