From 6061000b54424cc209dab2056500d4f72c327d2a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 7 Oct 2003 15:17:02 +0000 Subject: [PATCH] Fix bug in previous checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8922 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index b2b63af05d1..a8234b3c4b4 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -1960,6 +1960,7 @@ bool InstCombiner::runOnFunction(Function &F) { ++NumConstProp; I->getParent()->getInstList().erase(I); + removeFromWorkList(I); continue; }