Skip to content

Commit 483edfe

Browse files
authored
[libc++] Use __add_pointer and __remove_pointer builtins when they are fixed (#134147)
1 parent 739062d commit 483edfe

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
@@ -1073,9 +1073,8 @@ typedef __char32_t char32_t;
10731073
# define _LIBCPP_CTAD_SUPPORTED_FOR_TYPE(_ClassName) static_assert(true, "")
10741074
# endif
10751075

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

0 commit comments

Comments
 (0)