]> granicus.if.org Git - llvm/commitdiff
Fix cppcheck + MSVC analyzer uninitialized member variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 14 Aug 2019 17:41:37 +0000 (17:41 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 14 Aug 2019 17:41:37 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368888 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/GenericDomTree.h

index 99620802505b6edf37b3d3eec3f3cccb985b475a..34d8289ab1d6d0d12f4068a92f1a9cac5daeede5 100644 (file)
@@ -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;