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 | 158ff2c4a951d4725673d356569945be72f65ab5 (patch) | |
tree | bbf6e3679da059a3049581afceeaa097a9b19515 /llvm/lib/Transforms/Scalar/ConstantProp.cpp | |
parent | c7076914ac10310a3580a3bfca84fea7ccc65b28 (diff) | |
download | bcm5719-llvm-158ff2c4a951d4725673d356569945be72f65ab5.tar.gz bcm5719-llvm-158ff2c4a951d4725673d356569945be72f65ab5.zip |
Use Instruction::eraseFromParent().
llvm-svn: 52606
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/ConstantProp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantProp.cpp b/llvm/lib/Transforms/Scalar/ConstantProp.cpp index 90e8dad4f8a..dbbc86142cf 100644 --- a/llvm/lib/Transforms/Scalar/ConstantProp.cpp +++ b/llvm/lib/Transforms/Scalar/ConstantProp.cpp @@ -79,7 +79,7 @@ bool ConstantPropagation::runOnFunction(Function &F) { // Remove the dead instruction. WorkList.erase(I); - I->getParent()->getInstList().erase(I); + I->eraseFromParent(); // We made a change to the function... Changed = true; |