Skip to content

Commit 36e4be1

Browse files
committed
[libc++] Use __add_pointer and __remove_pointer builtins when they are fixed
1 parent 6f1347d commit 36e4be1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libcxx/include/__config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,9 +1074,8 @@ typedef __char32_t char32_t;
10741074
# define _LIBCPP_CTAD_SUPPORTED_FOR_TYPE(_ClassName) static_assert(true, "")
10751075
# endif
10761076

1077-
// TODO(varconst): currently, there are bugs in Clang's intrinsics when handling Objective-C++ `id`, so don't use
1078-
// compiler intrinsics in the Objective-C++ mode.
1079-
# ifdef __OBJC__
1077+
// TODO(LLVM 22): Remove the workaround
1078+
# if defined(__OBJC__) && (!defined(_LIBCPP_CLANG_VER) || _LIBCPP_CLANG_VER < 2010)
10801079
# define _LIBCPP_WORKAROUND_OBJCXX_COMPILER_INTRINSICS
10811080
# endif
10821081

0 commit comments

Comments
 (0)