commit | 8313ef42b711b17cf2c8700a115b3ff44936c4e0 | [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 | 242b38bae5d8eeadca0e0cf4777b3b285cb5eb01 [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);