[CFGPrinter] Use succ_empty (NFC)

This commit is contained in:
Kazu Hirata 2020-12-28 19:55:20 -08:00
parent 5d2529f28f
commit 2883cd98f3
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ FunctionPass *llvm::createCFGOnlyPrinterLegacyPassPass() {
void DOTGraphTraits<DOTFuncInfo *>::computeHiddenNodes(const Function *F) {
auto evaluateBB = [&](const BasicBlock *Node) {
if (succ_begin(Node) == succ_end(Node)) {
if (succ_empty(Node)) {
const Instruction *TI = Node->getTerminator();
isHiddenBasicBlock[Node] =
(HideUnreachablePaths && isa<UnreachableInst>(TI)) ||