diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h index b7d48e8e1ade5..12019bfc5a6c6 100644 --- a/llvm/include/llvm/Support/type_traits.h +++ b/llvm/include/llvm/Support/type_traits.h @@ -186,6 +186,13 @@ template class is_trivially_copyable : public std::true_type { }; +// Workaround the resolution to DR1734 +#if _MSVC_STL_UPDATE-0l > 202002l +template <> +class is_trivially_copyable> : public std::true_type { +}; +#endif + } // end namespace llvm