Fix bug in previous checkin
authorChris Lattner <sabre@nondot.org>
Tue, 7 Oct 2003 15:17:02 +0000 (15:17 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 7 Oct 2003 15:17:02 +0000 (15:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8922 91177308-0d34-0410-b5e6-96231b3b80d8

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;
     }