[PATCH] D125776: [llvm-debuginfo-analyzer] 01 - Interval tree
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 23 07:46:29 PDT 2022
probinson accepted this revision.
probinson added a comment.
A couple of nits, LGTM.
================
Comment at: llvm/include/llvm/ADT/IntervalTree.h:213
+ : Left(Left), Right(Right), Value(Value) {
+ assert(Left <= Right && "'Left' must be less or equal that 'Right'");
+ }
----------------
================
Comment at: llvm/unittests/ADT/IntervalTreeTest.cpp:103
+ Intervals = Tree.getContaining(Point);
+ ASSERT_TRUE(Intervals.size() == 1);
+ CheckData(Point, Intervals[0], 10, 20, 10.20);
----------------
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125776/new/
https://reviews.llvm.org/D125776
More information about the llvm-commits
mailing list