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 | 3a86bcf134d8db14032b77d1d3070e0ec4364645 (patch) | |
| tree | bcb1f5cc76c81d6f5681a327e4dd84aa44cd4d3f /llvm/lib/Transforms | |
| parent | 9f8fddeed83a9b1c31b839db2c0692aa0b69433f (diff) | |
| download | bcm5719-llvm-3a86bcf134d8db14032b77d1d3070e0ec4364645.tar.gz bcm5719-llvm-3a86bcf134d8db14032b77d1d3070e0ec4364645.zip | |
Should reset DBI_Prev if DBI_Next == 0.
llvm-svn: 65314
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 1a4396bace3..7f2cab96ec5 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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); | 

