Should reset DBI_Prev if DBI_Next == 0.

llvm-svn: 65314
This commit is contained in:
Zhou Sheng 2009-02-23 10:14:11 +00:00
parent 9f8fddeed8
commit 3a86bcf134
1 changed files with 2 additions and 0 deletions

View File

@ -12419,6 +12419,8 @@ static void AddReachableCodeToWorklist(BasicBlock *BB,
DBI_Prev->eraseFromParent(); DBI_Prev->eraseFromParent();
} }
DBI_Prev = DBI_Next; DBI_Prev = DBI_Next;
} else {
DBI_Prev = 0;
} }
IC.AddToWorkList(Inst); IC.AddToWorkList(Inst);