summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index b2b63af05d1..a8234b3c4b4 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -1960,6 +1960,7 @@ bool InstCombiner::runOnFunction(Function &F) {
++NumConstProp;
I->getParent()->getInstList().erase(I);
+ removeFromWorkList(I);
continue;
}
OpenPOWER on IntegriCloud