[llvm][Demangle][NFC] Sync latest libcxxabi/demangle
authorMichael Buch <michaelbuch12@gmail.com>
Thu, 9 Mar 2023 16:10:00 +0000 (16:10 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Sun, 19 Mar 2023 11:03:54 +0000 (11:03 +0000)
Differential Revision: https://reviews.llvm.org/D145693

llvm/include/llvm/Demangle/ItaniumDemangle.h

index 374bbd1..0dd49ea 100644 (file)
 #include <cstring>
 #include <limits>
 #include <new>
-#include <type_traits>
 #include <utility>
 
 DEMANGLE_NAMESPACE_BEGIN
 
 template <class T, size_t N> class PODSmallVector {
-  static_assert(std::is_trivial_v<T>, "T is required to be a trivial type");
+  static_assert(std::is_pod<T>::value,
+                "T is required to be a plain old data type");
 
   T *First = nullptr;
   T *Last = nullptr;
   T *Cap = nullptr;
-  T Inline[N] = {};
+  T Inline[N] = {0};
 
   bool isInline() const { return First == Inline; }