From 8313ef42b711b17cf2c8700a115b3ff44936c4e0 Mon Sep 17 00:00:00 2001 From: Zhou Sheng Date: Mon, 23 Feb 2009 10:14:11 +0000 Subject: [PATCH] Should reset DBI_Prev if DBI_Next == 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65314 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1a4396bace3..7f2cab96ec5 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -12419,6 +12419,8 @@ static void AddReachableCodeToWorklist(BasicBlock *BB, DBI_Prev->eraseFromParent(); } DBI_Prev = DBI_Next; + } else { + DBI_Prev = 0; } IC.AddToWorkList(Inst);