aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/DCE.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-26 20:18:18 +0000
committerChris Lattner <sabre@nondot.org>2002-05-26 20:18:18 +0000
commit16da494c81a09ea4273e7f3e7ad12eec68b05468 (patch)
tree66373655d5702ed6d2cf5a728f811e02528e9bb2 /lib/Transforms/Scalar/DCE.cpp
parent9e77f77687bdeece2a66ed9103379f6da3bbc46e (diff)
Simplify the interface to local DCE and Constant prop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/DCE.cpp')
-rw-r--r--lib/Transforms/Scalar/DCE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp
index 2c9c8b3b0d..fa2392fbb4 100644
--- a/lib/Transforms/Scalar/DCE.cpp
+++ b/lib/Transforms/Scalar/DCE.cpp
@@ -32,7 +32,7 @@ namespace {
BasicBlock::InstListType &Vals = BB->getInstList();
bool Changed = false;
for (BasicBlock::iterator DI = Vals.begin(); DI != Vals.end(); )
- if (dceInstruction(Vals, DI)) {
+ if (dceInstruction(DI)) {
Changed = true;
++DIEEliminated;
} else