summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-21 22:08:46 +0000
committerDan Gohman <gohman@apple.com>2008-06-21 22:08:46 +0000
commit158ff2c4a951d4725673d356569945be72f65ab5 (patch)
treebbf6e3679da059a3049581afceeaa097a9b19515 /llvm/lib/Transforms/IPO/RaiseAllocations.cpp
parentc7076914ac10310a3580a3bfca84fea7ccc65b28 (diff)
downloadbcm5719-llvm-158ff2c4a951d4725673d356569945be72f65ab5.tar.gz
bcm5719-llvm-158ff2c4a951d4725673d356569945be72f65ab5.zip
Use Instruction::eraseFromParent().
llvm-svn: 52606
Diffstat (limited to 'llvm/lib/Transforms/IPO/RaiseAllocations.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/RaiseAllocations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
index 58fd682eb7a..daf8ef00053 100644
--- a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud