[llvm-branch-commits] [libcxx] [libc++] Add accessor functions to __tree_node_base (PR #147679)
Louis Dionne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Sep 24 07:55:25 PDT 2025
================
@@ -289,46 +296,47 @@ template <class _NodePtr>
_LIBCPP_HIDE_FROM_ABI void __tree_balance_after_insert(_NodePtr __root, _NodePtr __x) _NOEXCEPT {
_LIBCPP_ASSERT_INTERNAL(__root != nullptr, "Root of the tree shouldn't be null");
_LIBCPP_ASSERT_INTERNAL(__x != nullptr, "Can't attach null node to a leaf");
- __x->__is_black_ = __x == __root;
- while (__x != __root && !__x->__parent_unsafe()->__is_black_) {
- // __x->__parent_ != __root because __x->__parent_->__is_black == false
+ using enum __tree_color;
----------------
ldionne wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/147679
More information about the llvm-branch-commits
mailing list