Skip to content

Commit

Permalink
Remove use of is_trivially_constructible.
Browse files Browse the repository at this point in the history
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

llvm-svn: 270957
  • Loading branch information
rui314 committed May 27, 2016
1 parent 47bee32 commit 0d70ccd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions llvm/include/llvm/DebugInfo/CodeView/StreamArray.h
Expand Up @@ -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() {}
Expand Down

0 comments on commit 0d70ccd

Please sign in to comment.