Skip to content

Commit 3a30955

Browse files
authored
[libc++] Remove obsolete _LIBCPP_PREDEFINED_OBJC_ARC_ADDRESSOF (#112745)
I don't know if that macro was ever truly defined by Clang, however it's not anymore, so that is effectively dead code.
1 parent fdd7c03 commit 3a30955

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libcxx/include/__memory/addressof.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ inline _LIBCPP_CONSTEXPR_SINCE_CXX17 _LIBCPP_NO_CFI _LIBCPP_HIDE_FROM_ABI _Tp* a
2323
return __builtin_addressof(__x);
2424
}
2525

26-
#if _LIBCPP_HAS_OBJC_ARC && !defined(_LIBCPP_PREDEFINED_OBJC_ARC_ADDRESSOF)
26+
#if _LIBCPP_HAS_OBJC_ARC
2727
// Objective-C++ Automatic Reference Counting uses qualified pointers
28-
// that require special addressof() signatures. When
29-
// _LIBCPP_PREDEFINED_OBJC_ARC_ADDRESSOF is defined, the compiler
30-
// itself is providing these definitions. Otherwise, we provide them.
28+
// that require special addressof() signatures.
3129
template <class _Tp>
3230
inline _LIBCPP_HIDE_FROM_ABI __strong _Tp* addressof(__strong _Tp& __x) _NOEXCEPT {
3331
return &__x;

0 commit comments

Comments
 (0)