File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -850,17 +850,16 @@ class DominatorTreeBase {
850850 void Split (typename GraphTraits<N>::NodeRef NewBB) {
851851 using GraphT = GraphTraits<N>;
852852 using NodeRef = typename GraphT::NodeRef;
853- assert (std::distance (GraphT::child_begin (NewBB),
854- GraphT::child_end (NewBB)) == 1 &&
853+ assert (llvm::hasSingleElement (children<N>(NewBB)) &&
855854 " NewBB should have a single successor!" );
856855 NodeRef NewBBSucc = *GraphT::child_begin (NewBB);
857856
858- SmallVector<NodeRef, 4 > PredBlocks (children<Inverse<N> >(NewBB));
857+ SmallVector<NodeRef, 4 > PredBlocks (inverse_children<N >(NewBB));
859858
860859 assert (!PredBlocks.empty () && " No predblocks?" );
861860
862861 bool NewBBDominatesNewBBSucc = true ;
863- for (auto *Pred : children<Inverse<N> >(NewBBSucc)) {
862+ for (auto *Pred : inverse_children<N >(NewBBSucc)) {
864863 if (Pred != NewBB && !dominates (NewBBSucc, Pred) &&
865864 isReachableFromEntry (Pred)) {
866865 NewBBDominatesNewBBSucc = false ;
You can’t perform that action at this time.
0 commit comments