commit | 158ff2c4a951d4725673d356569945be72f65ab5 | [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 | bbf6e3679da059a3049581afceeaa097a9b19515 | |
parent | c7076914ac10310a3580a3bfca84fea7ccc65b28 [diff] [blame] |
Use Instruction::eraseFromParent(). llvm-svn: 52606
diff --git a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp b/llvm/lib/Transforms/IPO/RaiseAllocations.cpp index 58fd682..daf8ef0 100644 --- a/llvm/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/llvm/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; }