[libcxx-commits] [libcxx] [libc++][CI] Tests the no RTTI configuration. (PR #65518)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 24 10:35:57 PST 2023
================
@@ -196,9 +196,7 @@ namespace __any_imp
if (__id && *__id == typeid(_Tp))
return true;
#endif
- if (!__id && __fallback_id == __any_imp::__get_fallback_typeid<_Tp>())
- return true;
- return false;
+ return !__id && __fallback_id == __any_imp::__get_fallback_typeid<_Tp>();
----------------
mordante wrote:
Yes the removal of the `#if !defined(_LIBCPP_HAS_NO_RTTI)` block gives a clang-tidy warning.
https://github.com/llvm/llvm-project/pull/65518
More information about the libcxx-commits
mailing list