OSDN Git Service

Remove use of is_trivially_constructible.
authorRui Ueyama <ruiu@google.com>
Fri, 27 May 2016 02:47:38 +0000 (02:47 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 27 May 2016 02:47:38 +0000 (02:47 +0000)
type_traits header in libstdc++ 4.8 does not define is_trivially_contructible
so the code doesn't compile with it.

In this file we are using the trait for assertion to provide a better
error message. Removing it doesn't change the meaning of the code.

Differential Revision: http://reviews.llvm.org/D20719

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270957 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/CodeView/StreamArray.h

index 03dc4ae..bc21b20 100644 (file)
@@ -111,8 +111,6 @@ template <typename T> class FixedStreamArrayIterator;
 
 template <typename T> class FixedStreamArray {
   friend class FixedStreamArrayIterator<T>;
-  static_assert(std::is_trivially_constructible<T>::value,
-                "FixedStreamArray must be used with trivial types");
 
 public:
   FixedStreamArray() : Stream() {}