[llvm] r270957 - Remove use of is_trivially_constructible.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 19:47:39 PDT 2016

Author: ruiu
Date: Thu May 26 21:47:38 2016
New Revision: 270957

URL: http://llvm.org/viewvc/llvm-project?rev=270957&view=rev
Remove use of is_trivially_constructible.

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


Modified: llvm/trunk/include/llvm/DebugInfo/CodeView/StreamArray.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/CodeView/StreamArray.h?rev=270957&r1=270956&r2=270957&view=diff
--- llvm/trunk/include/llvm/DebugInfo/CodeView/StreamArray.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/CodeView/StreamArray.h Thu May 26 21:47:38 2016
@@ -111,8 +111,6 @@ template <typename T> class FixedStreamA
 template <typename T> class FixedStreamArray {
   friend class FixedStreamArrayIterator<T>;
-  static_assert(std::is_trivially_constructible<T>::value,
-                "FixedStreamArray must be used with trivial types");
   FixedStreamArray() : Stream() {}

More information about the llvm-commits mailing list