[llvm] 50b58e8 - [llvm][Demangle][NFC] Sync latest libcxxabi/demangle
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 19 04:07:18 PDT 2023
Author: Michael Buch
Date: 2023-03-19T11:03:54Z
New Revision: 50b58e89a122fdc20616ad6d6dd3a802206454d2
URL: https://github.com/llvm/llvm-project/commit/50b58e89a122fdc20616ad6d6dd3a802206454d2
DIFF: https://github.com/llvm/llvm-project/commit/50b58e89a122fdc20616ad6d6dd3a802206454d2.diff
LOG: [llvm][Demangle][NFC] Sync latest libcxxabi/demangle
Differential Revision: https://reviews.llvm.org/D145693
Added:
Modified:
llvm/include/llvm/Demangle/ItaniumDemangle.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Demangle/ItaniumDemangle.h b/llvm/include/llvm/Demangle/ItaniumDemangle.h
index 374bbd196b113..0dd49ea91455b 100644
--- a/llvm/include/llvm/Demangle/ItaniumDemangle.h
+++ b/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; }
More information about the llvm-commits
mailing list