summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-02-20 16:35:42 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-02-20 16:35:42 +0000
commitd50f33d9966c380299779be48550a3ef9788af67 (patch)
tree5d7ee19f7d1dc0a18e9d4f76287e7caf6d54d5d8
parent4e892f9c6c220d7cb5d2660b66e79128cbc079e2 (diff)
downloadbcm5719-llvm-d50f33d9966c380299779be48550a3ef9788af67.tar.gz
bcm5719-llvm-d50f33d9966c380299779be48550a3ef9788af67.zip
Put MSVC back into the dumb compiler's corner.
It fails to compile std::trivially_copyable for forward-declared enums. llvm-svn: 230023
-rw-r--r--llvm/include/llvm/Support/type_traits.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h
index 1befe92bb1c..45465aea004 100644
--- a/llvm/include/llvm/Support/type_traits.h
+++ b/llvm/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 <typename T>
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<T>::value;
OpenPOWER on IntegriCloud