Remove redundant _LIBCPP_ALWAYS_INLINE attribute from __convert_to_integral overloads
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@255185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4257,34 +4257,34 @@ struct __sfinae_underlying_type
|
|||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
struct __sfinae_underlying_type<_Tp, false> {};
|
struct __sfinae_underlying_type<_Tp, false> {};
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
int __convert_to_integral(int __val) { return __val; }
|
int __convert_to_integral(int __val) { return __val; }
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
unsigned __convert_to_integral(unsigned __val) { return __val; }
|
unsigned __convert_to_integral(unsigned __val) { return __val; }
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
long __convert_to_integral(long __val) { return __val; }
|
long __convert_to_integral(long __val) { return __val; }
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
unsigned long __convert_to_integral(unsigned long __val) { return __val; }
|
unsigned long __convert_to_integral(unsigned long __val) { return __val; }
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
long long __convert_to_integral(long long __val) { return __val; }
|
long long __convert_to_integral(long long __val) { return __val; }
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
unsigned long long __convert_to_integral(unsigned long long __val) {return __val; }
|
unsigned long long __convert_to_integral(unsigned long long __val) {return __val; }
|
||||||
|
|
||||||
#ifndef _LIBCPP_HAS_NO_INT128
|
#ifndef _LIBCPP_HAS_NO_INT128
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
__int128_t __convert_to_integral(__int128_t __val) { return __val; }
|
__int128_t __convert_to_integral(__int128_t __val) { return __val; }
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
__uint128_t __convert_to_integral(__uint128_t __val) { return __val; }
|
__uint128_t __convert_to_integral(__uint128_t __val) { return __val; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_ALWAYS_INLINE
|
inline _LIBCPP_INLINE_VISIBILITY
|
||||||
typename __sfinae_underlying_type<_Tp>::__promoted_type
|
typename __sfinae_underlying_type<_Tp>::__promoted_type
|
||||||
__convert_to_integral(_Tp __val) { return __val; }
|
__convert_to_integral(_Tp __val) { return __val; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user