File tree 2 files changed +3
-12
lines changed 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,6 @@ struct __forward_node_traits {
295
295
"the _LIBCPP_ABI_FORWARD_LIST_REMOVE_NODE_POINTER_UB macro to silence this diagnostic.");
296
296
# endif
297
297
298
- _LIBCPP_HIDE_FROM_ABI static __begin_node_pointer __as_iter_node (__begin_node_pointer __p) { return __p; }
299
298
_LIBCPP_HIDE_FROM_ABI static __begin_node_pointer __as_iter_node (__node_pointer __p) {
300
299
return static_cast <__begin_node_pointer>(static_cast <__void_pointer>(__p));
301
300
}
@@ -373,8 +372,7 @@ class _LIBCPP_TEMPLATE_VIS __forward_list_iterator {
373
372
374
373
_LIBCPP_HIDE_FROM_ABI explicit __forward_list_iterator (nullptr_t ) _NOEXCEPT : __ptr_(nullptr ) {}
375
374
376
- _LIBCPP_HIDE_FROM_ABI explicit __forward_list_iterator (__begin_node_pointer __p) _NOEXCEPT
377
- : __ptr_(__traits::__as_iter_node(__p)) {}
375
+ _LIBCPP_HIDE_FROM_ABI explicit __forward_list_iterator (__begin_node_pointer __p) _NOEXCEPT : __ptr_(__p) {}
378
376
379
377
_LIBCPP_HIDE_FROM_ABI explicit __forward_list_iterator (__node_pointer __p) _NOEXCEPT
380
378
: __ptr_(__traits::__as_iter_node(__p)) {}
@@ -438,8 +436,7 @@ class _LIBCPP_TEMPLATE_VIS __forward_list_const_iterator {
438
436
439
437
_LIBCPP_HIDE_FROM_ABI explicit __forward_list_const_iterator (nullptr_t ) _NOEXCEPT : __ptr_(nullptr ) {}
440
438
441
- _LIBCPP_HIDE_FROM_ABI explicit __forward_list_const_iterator (__begin_node_pointer __p) _NOEXCEPT
442
- : __ptr_(__traits::__as_iter_node(__p)) {}
439
+ _LIBCPP_HIDE_FROM_ABI explicit __forward_list_const_iterator (__begin_node_pointer __p) _NOEXCEPT : __ptr_(__p) {}
443
440
444
441
_LIBCPP_HIDE_FROM_ABI explicit __forward_list_const_iterator (__node_pointer __p) _NOEXCEPT
445
442
: __ptr_(__traits::__as_iter_node(__p)) {}
Original file line number Diff line number Diff line change @@ -286,12 +286,6 @@ struct __list_node_pointer_traits {
286
286
"LLVM 19 and LLVM 20. If you don't care about your ABI being broken, define the "
287
287
"_LIBCPP_ABI_LIST_REMOVE_NODE_POINTER_UB macro to silence this diagnostic.");
288
288
# endif
289
-
290
- static _LIBCPP_HIDE_FROM_ABI __base_pointer __unsafe_link_pointer_cast (__base_pointer __p) { return __p; }
291
-
292
- static _LIBCPP_HIDE_FROM_ABI __base_pointer __unsafe_link_pointer_cast (__node_pointer __p) {
293
- return static_cast <__base_pointer>(static_cast <_VoidPtr>(__p));
294
- }
295
289
};
296
290
297
291
template <class _Tp , class _VoidPtr >
@@ -504,7 +498,7 @@ protected:
504
498
_LIBCPP_COMPRESSED_PAIR (size_type, __size_, __node_allocator, __node_alloc_);
505
499
506
500
_LIBCPP_HIDE_FROM_ABI __base_pointer __end_as_link () const _NOEXCEPT {
507
- return __node_pointer_traits::__unsafe_link_pointer_cast ( const_cast <__node_base&>(__end_).__self () );
501
+ return const_cast <__node_base&>(__end_).__self ();
508
502
}
509
503
510
504
_LIBCPP_HIDE_FROM_ABI size_type __node_alloc_max_size () const _NOEXCEPT {
You can’t perform that action at this time.
0 commit comments