diff --git a/llvm/utils/TableGen/GlobalISel/GIMatchTree.h b/llvm/utils/TableGen/GlobalISel/GIMatchTree.h --- a/llvm/utils/TableGen/GlobalISel/GIMatchTree.h +++ b/llvm/utils/TableGen/GlobalISel/GIMatchTree.h @@ -390,7 +390,7 @@ /// The leaves that the resulting decision tree will distinguish. LeafVec Leaves; /// The tree node being constructed. - GIMatchTree *TreeNode; + GIMatchTree *TreeNode = nullptr; /// The builders for each subtree resulting from the current decision. std::vector SubtreeBuilders; /// The possible partitioners we could apply right now.