From 6039d05a2263e13fbe3fdcd280613c4dee02b9ce Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 20 Feb 2015 16:35:42 +0000 Subject: [PATCH] Put MSVC back into the dumb compiler's corner. It fails to compile std::trivially_copyable for forward-declared enums. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230023 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/type_traits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index 1befe92bb1c..45465aea004 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -28,10 +28,10 @@ namespace llvm { /// type can be copied around with memcpy instead of running ctors etc. template struct isPodLike { - // std::is_trivially copyable is available in libc++ with clang, libstdc++ - // that comes with GCC 5 and MSVC 2013. + // std::is_trivially_copyable is available in libc++ with clang, libstdc++ + // that comes with GCC 5. #if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) || \ - (defined(__GNUC__) && __GNUC__ >= 5) || defined(_MSC_VER) + (defined(__GNUC__) && __GNUC__ >= 5) // If the compiler supports the is_trivially_copyable trait use it, as it // matches the definition of isPodLike closely. static const bool value = std::is_trivially_copyable::value;