Skip to content

Commit b5a6e8a

Browse files
committed
[NFC][libc++] Rewrites a return statement.
This fixes a clang-tidy diagnostic when building libc++ with RTTI disabled. This was originally part of #65518.
1 parent 4cfdef7 commit b5a6e8a

File tree

1 file changed

+1
-3
lines changed
  • libcxx/include

1 file changed

+1
-3
lines changed

libcxx/include/any

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ namespace __any_imp
194194
if (__id && *__id == typeid(_Tp))
195195
return true;
196196
#endif
197-
if (!__id && __fallback_id == __any_imp::__get_fallback_typeid<_Tp>())
198-
return true;
199-
return false;
197+
return !__id && __fallback_id == __any_imp::__get_fallback_typeid<_Tp>();
200198
}
201199

202200
template <class _Tp>

0 commit comments

Comments
 (0)