mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Introduce predecessors and successors
This commit is contained in:
+1
-1
@@ -604,7 +604,7 @@ static void purgeDeadBlocks(Function *F) {
|
||||
|
||||
// Skip the first basic block
|
||||
for (BasicBlock &BB : make_range(++F->begin(), F->end()))
|
||||
if (pred_begin(&BB) == pred_end(&BB))
|
||||
if (pred_empty(&BB))
|
||||
Kill.push_back(&BB);
|
||||
|
||||
} while (!Kill.empty());
|
||||
|
||||
Reference in New Issue
Block a user