[all-commits] [llvm/llvm-project] c67412: [IntervalTree] Initialize find_iterator::Point

Joshua Cao via All-commits all-commits at lists.llvm.org
Sat May 13 23:44:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c67412516edd07aeb7bed55dbf84e9ae261913b4
      https://github.com/llvm/llvm-project/commit/c67412516edd07aeb7bed55dbf84e9ae261913b4
  Author: Joshua Cao <cao.joshua at yahoo.com>
  Date:   2023-05-13 (Sat, 13 May 2023)

  Changed paths:
    M llvm/include/llvm/ADT/IntervalTree.h

  Log Message:
  -----------
  [IntervalTree] Initialize find_iterator::Point

There was initially a msan report for use-of-uninitialized value due to
a bug in https://reviews.llvm.org/D138526. find_iterator::Point is
uninitialized for the default constructor of find_iterator, which is
used by IntervalTree::end. This change is not required, but its good
practice to make sure all class members are initialized.

Differential Revision: https://reviews.llvm.org/D149698




More information about the All-commits mailing list