Skip to content

Commit fd0637c

Browse files
authored
[ItaniumDemangle] reapply 0e754e1 (#79488)
It got lost in 50b58e8.
1 parent b75cad4 commit fd0637c

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

libcxxabi/src/demangle/ItaniumDemangle.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@
3939
DEMANGLE_NAMESPACE_BEGIN
4040

4141
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");
4544
T *First = nullptr;
4645
T *Last = nullptr;
4746
T *Cap = nullptr;
48-
T Inline[N] = {0};
47+
T Inline[N] = {};
4948

5049
bool isInline() const { return First == Inline; }
5150

llvm/include/llvm/Demangle/ItaniumDemangle.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@
3838
DEMANGLE_NAMESPACE_BEGIN
3939

4040
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");
4443
T *First = nullptr;
4544
T *Last = nullptr;
4645
T *Cap = nullptr;
47-
T Inline[N] = {0};
46+
T Inline[N] = {};
4847

4948
bool isInline() const { return First == Inline; }
5049

0 commit comments

Comments
 (0)