[PATCH] D148464: Fix uninitialized pointer members in TableGen
Akshay Khadse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 16 05:12:06 PDT 2023
akshaykhadse created this revision.
Herald added a project: All.
akshaykhadse requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148464
Files:
llvm/utils/TableGen/GlobalISel/GIMatchTree.h
Index: llvm/utils/TableGen/GlobalISel/GIMatchTree.h
===================================================================
--- llvm/utils/TableGen/GlobalISel/GIMatchTree.h
+++ 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<GIMatchTreeBuilder> SubtreeBuilders;
/// The possible partitioners we could apply right now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148464.513991.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230416/ef919c3c/attachment.bin>
More information about the llvm-commits
mailing list