[libcxx-commits] [libcxx] [libc++] Use __add_pointer and __remove_pointer builtins when they are fixed (PR #134147)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 8 04:05:57 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Nikolas Klauser (philnik777)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/134147.diff
1 Files Affected:
- (modified) libcxx/include/__config (+2-3)
``````````diff
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 35e62d0a19e85..f74433a588a7c 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1074,9 +1074,8 @@ typedef __char32_t char32_t;
# define _LIBCPP_CTAD_SUPPORTED_FOR_TYPE(_ClassName) static_assert(true, "")
# endif
-// TODO(varconst): currently, there are bugs in Clang's intrinsics when handling Objective-C++ `id`, so don't use
-// compiler intrinsics in the Objective-C++ mode.
-# ifdef __OBJC__
+// TODO(LLVM 22): Remove the workaround
+# if defined(__OBJC__) && (!defined(_LIBCPP_CLANG_VER) || _LIBCPP_CLANG_VER < 2001)
# define _LIBCPP_WORKAROUND_OBJCXX_COMPILER_INTRINSICS
# endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/134147
More information about the libcxx-commits
mailing list