[PATCH] D20719: Remove use of is_trivially_constructible.

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

ruiu created this revision.
ruiu added a reviewer: zturner.
ruiu added a subscriber: llvm-commits.

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.



Index: include/llvm/DebugInfo/CodeView/StreamArray.h
--- include/llvm/DebugInfo/CodeView/StreamArray.h
+++ include/llvm/DebugInfo/CodeView/StreamArray.h
@@ -111,8 +111,6 @@
 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() {}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20719.58745.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160527/2330d637/attachment.bin>

More information about the llvm-commits mailing list