Browse Source

type_traits.h: Support isPodLike for _MSC_VER >= 1900 (#925)

Tex Riddell 7 years ago
parent
commit
b8628000aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/llvm/Support/type_traits.h

+ 2 - 1
include/llvm/Support/type_traits.h

@@ -31,7 +31,8 @@ struct isPodLike {
   // std::is_trivially_copyable is available in libc++ with clang, libstdc++
   // std::is_trivially_copyable is available in libc++ with clang, libstdc++
   // that comes with GCC 5.
   // that comes with GCC 5.
 #if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) ||      \
 #if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) ||      \
-    (defined(__GNUC__) && __GNUC__ >= 5)
+    (defined(__GNUC__) && __GNUC__ >= 5) || \
+    (_MSC_VER >= 1900)  // HLSL Change
   // If the compiler supports the is_trivially_copyable trait use it, as it
   // If the compiler supports the is_trivially_copyable trait use it, as it
   // matches the definition of isPodLike closely.
   // matches the definition of isPodLike closely.
   static const bool value = std::is_trivially_copyable<T>::value;
   static const bool value = std::is_trivially_copyable<T>::value;