diff options
-rw-r--r-- | lib/Transforms/Scalar/DCE.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp index 8d0b1db650..36e662ac2f 100644 --- a/lib/Transforms/Scalar/DCE.cpp +++ b/lib/Transforms/Scalar/DCE.cpp @@ -92,9 +92,8 @@ bool DCE::runOnFunction(Function &F) { // instructions being used, add them to the worklist, because they might // go dead after this one is removed. // - for (User::use_iterator UI = I->use_begin(), UE = I->use_end(); - UI != UE; ++UI) - if (Instruction *Used = dyn_cast<Instruction>(*UI)) + for (User::op_iterator OI = I->op_begin(), E = I->op_end(); OI != E; ++OI) + if (Instruction *Used = dyn_cast<Instruction>(*OI)) WorkList.push_back(Used); // Tell the instruction to let go of all of the values it uses... |