summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LICM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LICM.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LICM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index 3be163ce412..2e5adf6f7a8 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -184,7 +184,7 @@ void LICM::visitBasicBlock(BasicBlock *BB) {
visit(BB->begin()[i]);
BasicBlock::iterator It = BB->begin()+i;
- if (dceInstruction(BB->getInstList(), It))
+ if (dceInstruction(It))
Changed = true;
else
++i;
OpenPOWER on IntegriCloud