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 {
850
850
void Split (typename GraphTraits<N>::NodeRef NewBB) {
851
851
using GraphT = GraphTraits<N>;
852
852
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)) &&
855
854
" NewBB should have a single successor!" );
856
855
NodeRef NewBBSucc = *GraphT::child_begin (NewBB);
857
856
858
- SmallVector<NodeRef, 4 > PredBlocks (children<Inverse<N> >(NewBB));
857
+ SmallVector<NodeRef, 4 > PredBlocks (inverse_children<N >(NewBB));
859
858
860
859
assert (!PredBlocks.empty () && " No predblocks?" );
861
860
862
861
bool NewBBDominatesNewBBSucc = true ;
863
- for (auto *Pred : children<Inverse<N> >(NewBBSucc)) {
862
+ for (auto *Pred : inverse_children<N >(NewBBSucc)) {
864
863
if (Pred != NewBB && !dominates (NewBBSucc, Pred) &&
865
864
isReachableFromEntry (Pred)) {
866
865
NewBBDominatesNewBBSucc = false ;
You can’t perform that action at this time.
0 commit comments