[libcxx-commits] [libcxx] 5499a70 - Revert "[libc++] Fix incorrect down cast in __tree::operator="
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 6 03:09:30 PDT 2025
Author: Nikolas Klauser
Date: 2025-08-06T12:09:07+02:00
New Revision: 5499a70c39bfea10a0139ed6e98a267b9473448d
URL: https://github.com/llvm/llvm-project/commit/5499a70c39bfea10a0139ed6e98a267b9473448d
DIFF: https://github.com/llvm/llvm-project/commit/5499a70c39bfea10a0139ed6e98a267b9473448d.diff
LOG: Revert "[libc++] Fix incorrect down cast in __tree::operator="
This reverts commit 35110445081152f7f2d2a9d053bb6fa718216d7b.
I've accidentally pushed to the wrong branch.
Added:
Modified:
libcxx/include/__tree
Removed:
################################################################################
diff --git a/libcxx/include/__tree b/libcxx/include/__tree
index 64d1436055bfe..6ca1a623536f2 100644
--- a/libcxx/include/__tree
+++ b/libcxx/include/__tree
@@ -1388,7 +1388,7 @@ __tree<_Tp, _Compare, _Allocator>& __tree<_Tp, _Compare, _Allocator>::operator=(
if (__root())
__root()->__parent_ = __end_node();
}
- __begin_node_ = static_cast<__end_node_pointer>(std::__tree_min(__end_node()->__left_));
+ __begin_node_ = static_cast<__end_node_pointer>(std::__tree_min(static_cast<__node_base_pointer>(__end_node())));
__size_ = __t.size();
return *this;
More information about the libcxx-commits
mailing list