From 800aaaf207a89c3c1e10c3a5cf6155562de248f7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 7 Oct 2003 15:17:02 +0000 Subject: Fix bug in previous checkin llvm-svn: 8922 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp') 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; } -- cgit v1.2.3