diff options
Diffstat (limited to 'include/llvm/Analysis/Dominators.h')
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 11c0bc2..ad1766c 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -605,17 +605,9 @@ protected: // immediate dominator. NodeT *IDom = getIDom(BB); - // skip all non root nodes that have no dominator - if (!IDom && std::count(this->Roots.begin(), this->Roots.end(), BB) == 0) - return NULL; - + assert(IDom || this->DomTreeNodes[NULL]); DomTreeNodeBase<NodeT> *IDomNode = getNodeForBlock(IDom); - // skip all nodes that are dominated by a non root node that, by itself, - // has no dominator. - if (!IDomNode) - return NULL; - // Add a new tree node for this BasicBlock, and link it as a child of // IDomNode DomTreeNodeBase<NodeT> *C = new DomTreeNodeBase<NodeT>(BB, IDomNode); |