File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
llvm/include/llvm/Demangle Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 39
39
DEMANGLE_NAMESPACE_BEGIN
40
40
41
41
template <class T , size_t N> class PODSmallVector {
42
- static_assert (std::is_pod<T>::value,
43
- " T is required to be a plain old data type" );
44
-
42
+ static_assert (std::is_trivial<T>::value,
43
+ " T is required to be a trivial type" );
45
44
T *First = nullptr ;
46
45
T *Last = nullptr ;
47
46
T *Cap = nullptr ;
48
- T Inline[N] = {0 };
47
+ T Inline[N] = {};
49
48
50
49
bool isInline () const { return First == Inline; }
51
50
Original file line number Diff line number Diff line change 38
38
DEMANGLE_NAMESPACE_BEGIN
39
39
40
40
template <class T , size_t N> class PODSmallVector {
41
- static_assert (std::is_pod<T>::value,
42
- " T is required to be a plain old data type" );
43
-
41
+ static_assert (std::is_trivial<T>::value,
42
+ " T is required to be a trivial type" );
44
43
T *First = nullptr ;
45
44
T *Last = nullptr ;
46
45
T *Cap = nullptr ;
47
- T Inline[N] = {0 };
46
+ T Inline[N] = {};
48
47
49
48
bool isInline () const { return First == Inline; }
50
49
You can’t perform that action at this time.
0 commit comments