[PATCH] D149698: [IntervalTree] Initialize find_iterator::Point

Joshua Cao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 13 23:44:39 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc67412516edd: [IntervalTree] Initialize find_iterator::Point (authored by caojoshua).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149698/new/

https://reviews.llvm.org/D149698

Files:
  llvm/include/llvm/ADT/IntervalTree.h


Index: llvm/include/llvm/ADT/IntervalTree.h
===================================================================
--- llvm/include/llvm/ADT/IntervalTree.h
+++ llvm/include/llvm/ADT/IntervalTree.h
@@ -463,7 +463,7 @@
     // Current node and index while traversing the intervals that contain
     // the reference point.
     IntervalNode *Node = nullptr;
-    PointType Point;
+    PointType Point = {};
     unsigned Index = 0;
 
     // For the current node, check if we have intervals that contain the


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149698.521975.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230514/4b3d33ab/attachment.bin>


More information about the llvm-commits mailing list