[libcxx-commits] [PATCH] D144923: [libc++] Temporarily not use compiler intrinsics for some type traits in Objective-C++ mode.

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 27 15:17:57 PST 2023


philnik added inline comments.


================
Comment at: libcxx/include/__config:1262
 
+// 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.
----------------
Can you file a bug against Clang and link it here? This makes it easier to check whether the bug is fixed.


================
Comment at: libcxx/include/__config:1264-1266
+#ifndef __OBJC__
+#define _LIBCPP_USING_TYPE_TRAITS_COMPILER_INTRINSICS
+#endif
----------------
We normally disable stuff the other way around. Is there a reason to do it differently here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144923/new/

https://reviews.llvm.org/D144923



More information about the libcxx-commits mailing list