[PATCH] D145693: [llvm][Demangle][NFC] Sync latest libcxxabi/demangle

Michael Buch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 19 04:07:21 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG50b58e89a122: [llvm][Demangle][NFC] Sync latest libcxxabi/demangle (authored by Michael137).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145693/new/

https://reviews.llvm.org/D145693

Files:
  llvm/include/llvm/Demangle/ItaniumDemangle.h


Index: llvm/include/llvm/Demangle/ItaniumDemangle.h
===================================================================
--- llvm/include/llvm/Demangle/ItaniumDemangle.h
+++ llvm/include/llvm/Demangle/ItaniumDemangle.h
@@ -27,18 +27,18 @@
 #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; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145693.506376.patch
Type: text/x-patch
Size: 769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230319/efb4f77b/attachment.bin>


More information about the llvm-commits mailing list