commit | 77e03b98c70ca894bcd81075e3a279ace5c11f15 | [log] [tgz] |
---|---|---|
author | Zhou Sheng <zhousheng00@gmail.com> | Mon Feb 23 10:14:11 2009 +0000 |
committer | Zhou Sheng <zhousheng00@gmail.com> | Mon Feb 23 10:14:11 2009 +0000 |
tree | 236213a2046e48b44c435544562f237ac02dcefc | |
parent | ef35628e06875d527f83f5c1bfba9d5a134e3b53 [diff] |
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
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1a4396b..7f2cab9 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -12419,6 +12419,8 @@ DBI_Prev->eraseFromParent(); } DBI_Prev = DBI_Next; + } else { + DBI_Prev = 0; } IC.AddToWorkList(Inst);