Fix bug in previous checkin
[oota-llvm.git] / lib / Transforms / Scalar / InstructionCombining.cpp
index b2b63af05d1128834d3e497b7c21786e875933db..a8234b3c4b442df607a8172f27185916a3bcd4ee 100644 (file)
@@ -1960,6 +1960,7 @@ bool InstCombiner::runOnFunction(Function &F) {
 
       ++NumConstProp;
       I->getParent()->getInstList().erase(I);
+      removeFromWorkList(I);
       continue;
     }