Skip to content

Commit 7b8dc37

Browse files
authored
include/swift/Basic: fix feature checks
1 parent 8f5f95b commit 7b8dc37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Basic/type_traits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct IsTriviallyConstructible {
4545
#if defined(_LIBCPP_VERSION) || SWIFT_COMPILER_IS_MSVC
4646
// libc++ and MSVC implement is_trivially_constructible.
4747
static const bool value = std::is_trivially_constructible<T>::value;
48-
#elif __has_feature(has_trivial_constructor) || __GNUC__ >= 5
48+
#elif __has_feature(__is_trivially_constructible) || __GNUC__ >= 5
4949
static const bool value = __is_trivially_constructible(T);
5050
#else
5151
# error "Not implemented"
@@ -57,7 +57,7 @@ struct IsTriviallyDestructible {
5757
#if defined(_LIBCPP_VERSION) || SWIFT_COMPILER_IS_MSVC
5858
// libc++ and MSVC implement is_trivially_destructible.
5959
static const bool value = std::is_trivially_destructible<T>::value;
60-
#elif __has_feature(has_trivial_destructor) || __GNUC__ >= 5
60+
#elif __has_feature(__is_trivially_constructible) || __GNUC__ >= 5
6161
static const bool value = __is_trivially_destructible(T);
6262
#else
6363
# error "Not implemented"

0 commit comments

Comments
 (0)