[ADCE] Use succ_empty (NFC)

This commit is contained in:
Kazu Hirata 2020-11-15 19:52:59 -08:00
parent 2b84784a25
commit 0c03d1328c
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ void AggressiveDeadCodeElimination::computeReversePostOrder() {
SmallPtrSet<BasicBlock*, 16> Visited;
unsigned PostOrder = 0;
for (auto &BB : F) {
if (succ_begin(&BB) != succ_end(&BB))
if (!succ_empty(&BB))
continue;
for (BasicBlock *Block : inverse_post_order_ext(&BB,Visited))
BlockInfo[Block].PostOrder = PostOrder++;