Skip to content

Commit 50b58e8

Browse files
committed
[llvm][Demangle][NFC] Sync latest libcxxabi/demangle
Differential Revision: https://reviews.llvm.org/D145693
1 parent c9d36bd commit 50b58e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/Demangle/ItaniumDemangle.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@
2727
#include <cstring>
2828
#include <limits>
2929
#include <new>
30-
#include <type_traits>
3130
#include <utility>
3231

3332
DEMANGLE_NAMESPACE_BEGIN
3433

3534
template <class T, size_t N> class PODSmallVector {
36-
static_assert(std::is_trivial_v<T>, "T is required to be a trivial type");
35+
static_assert(std::is_pod<T>::value,
36+
"T is required to be a plain old data type");
3737

3838
T *First = nullptr;
3939
T *Last = nullptr;
4040
T *Cap = nullptr;
41-
T Inline[N] = {};
41+
T Inline[N] = {0};
4242

4343
bool isInline() const { return First == Inline; }
4444

0 commit comments

Comments
 (0)