diff options
Diffstat (limited to 'include/llvm/Support/GenericDomTree.h')
-rw-r--r-- | include/llvm/Support/GenericDomTree.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/GenericDomTree.h b/include/llvm/Support/GenericDomTree.h index 99620802505b..9169379f746d 100644 --- a/include/llvm/Support/GenericDomTree.h +++ b/include/llvm/Support/GenericDomTree.h @@ -242,7 +242,7 @@ protected: using DomTreeNodeMapType = DenseMap<NodeT *, std::unique_ptr<DomTreeNodeBase<NodeT>>>; DomTreeNodeMapType DomTreeNodes; - DomTreeNodeBase<NodeT> *RootNode; + DomTreeNodeBase<NodeT> *RootNode = nullptr; ParentPtr Parent = nullptr; mutable bool DFSInfoValid = false; @@ -571,7 +571,7 @@ protected: assert(IDomNode && "Not immediate dominator specified for block!"); DFSInfoValid = false; return (DomTreeNodes[BB] = IDomNode->addChild( - llvm::make_unique<DomTreeNodeBase<NodeT>>(BB, IDomNode))).get(); + std::make_unique<DomTreeNodeBase<NodeT>>(BB, IDomNode))).get(); } /// Add a new node to the forward dominator tree and make it a new root. @@ -585,7 +585,7 @@ protected: "Cannot change root of post-dominator tree"); DFSInfoValid = false; DomTreeNodeBase<NodeT> *NewNode = (DomTreeNodes[BB] = - llvm::make_unique<DomTreeNodeBase<NodeT>>(BB, nullptr)).get(); + std::make_unique<DomTreeNodeBase<NodeT>>(BB, nullptr)).get(); if (Roots.empty()) { addRoot(BB); } else { |