Skip to content

Commit 1a602e9

Browse files
committed
Fix names of intrinsic type trait fallbacks for IsTriviallyConstructible/Destructible.
Swift SVN r28253
1 parent b10105d commit 1a602e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/Basic/type_traits.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ struct IsTriviallyConstructible {
4444
#if _LIBCPP_VERSION
4545
// libc++ implements it.
4646
static const bool value = std::is_trivially_constructible<T>::value;
47-
#elif __has_feature(is_trivially_constructible)
48-
static const bool value = __is_trivially_constructible(T);
47+
#elif __has_feature(has_trivial_constructor)
48+
static const bool value = __has_trivial_constructor(T);
4949
#else
5050
# error "Not implemented"
5151
#endif
@@ -56,8 +56,8 @@ struct IsTriviallyDestructible {
5656
#if _LIBCPP_VERSION
5757
// libc++ implements it.
5858
static const bool value = std::is_trivially_destructible<T>::value;
59-
#elif __has_feature(is_trivially_destructible)
60-
static const bool value = __is_trivially_destructible(T);
59+
#elif __has_feature(has_trivial_destructor)
60+
static const bool value = __has_trivial_destructor(T);
6161
#else
6262
# error "Not implemented"
6363
#endif

0 commit comments

Comments
 (0)