aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-07 15:17:02 +0000
committerChris Lattner <sabre@nondot.org>2003-10-07 15:17:02 +0000
commit6061000b54424cc209dab2056500d4f72c327d2a (patch)
treef5610e446c2f9f95b0fb336fe1cb390397072b0c
parentbd082800ec44049e72ab72fd6dd6b85ae9b814a3 (diff)
Fix bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8922 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index b2b63af05d..a8234b3c4b 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;
}