diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2009-02-23 10:14:11 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2009-02-23 10:14:11 +0000 |
commit | 8313ef42b711b17cf2c8700a115b3ff44936c4e0 (patch) | |
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
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1a4396bace..7f2cab96ec 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); |