diff --git a/llvm/include/llvm/ADT/bit.h b/llvm/include/llvm/ADT/bit.h --- a/llvm/include/llvm/ADT/bit.h +++ b/llvm/include/llvm/ADT/bit.h @@ -26,7 +26,8 @@ , typename = typename std::enable_if::type #if (__has_feature(is_trivially_constructible) && defined(_LIBCPP_VERSION)) || \ (defined(__GNUC__) && __GNUC__ >= 5) - , typename = typename std::is_trivially_constructible::type + , typename = typename std::enable_if< + std::is_trivially_constructible::value>::type #elif __has_feature(is_trivially_constructible) , typename = typename std::enable_if<__is_trivially_constructible(To)>::type #else