Skip to content

Commit ce0a74e

Browse files
committed
[CUDA] fix wrapper cmath header to match #136101
1 parent c336bd7 commit ce0a74e

File tree

1 file changed

+2
-2
lines changed
  • clang/lib/Headers/cuda_wrappers

1 file changed

+2
-2
lines changed

clang/lib/Headers/cuda_wrappers/cmath

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ __constexpr_fmax(long double __x, long double __y) _NOEXCEPT {
6363

6464
template <class _Tp, class _Up, __enable_if_t<is_arithmetic<_Tp>::value && is_arithmetic<_Up>::value, int> = 0>
6565
__attribute__((device))
66-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename __promote<_Tp, _Up>::type
66+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 __promote_t<_Tp, _Up>
6767
__constexpr_fmax(_Tp __x, _Up __y) _NOEXCEPT {
68-
using __result_type = typename __promote<_Tp, _Up>::type;
68+
using __result_type = __promote_t<_Tp, _Up>;
6969
return std::__constexpr_fmax(static_cast<__result_type>(__x), static_cast<__result_type>(__y));
7070
}
7171
#endif // _LIBCPP_STD_VER < 14

0 commit comments

Comments
 (0)