Skip to content

Commit 8f5f95b

Browse files
authored
include/swift/Basic: use __is_trivially_destructible
1 parent 88cc42c commit 8f5f95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/type_traits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct IsTriviallyDestructible {
5858
// libc++ and MSVC implement is_trivially_destructible.
5959
static const bool value = std::is_trivially_destructible<T>::value;
6060
#elif __has_feature(has_trivial_destructor) || __GNUC__ >= 5
61-
static const bool value = __has_trivial_destructor(T);
61+
static const bool value = __is_trivially_destructible(T);
6262
#else
6363
# error "Not implemented"
6464
#endif

0 commit comments

Comments
 (0)