From: Chris Lattner Date: Tue, 7 Oct 2003 15:17:02 +0000 (+0000) Subject: Fix bug in previous checkin X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6061000b54424cc209dab2056500d4f72c327d2a;p=oota-llvm.git Fix bug in previous checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8922 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }