aboutsummaryrefslogtreecommitdiff
path: root/libcxxabi
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2024-01-25 21:59:16 -0500
committerGitHub <noreply@github.com>2024-01-25 21:59:16 -0500
commitfd0637cfe835d6d4d0d3ebde3663f94a7bb3cd76 (patch)
treebc9c1adde4c4c03065c3a6676bb4ed7a6ae9eb38 /libcxxabi
parentb75cad44136e06222e054998b2337952fed4642f (diff)
downloadllvm-fd0637cfe835d6d4d0d3ebde3663f94a7bb3cd76.zip
llvm-fd0637cfe835d6d4d0d3ebde3663f94a7bb3cd76.tar.gz
llvm-fd0637cfe835d6d4d0d3ebde3663f94a7bb3cd76.tar.bz2
[ItaniumDemangle] reapply 0e754e114a6 (#79488)
It got lost in 50b58e89a122.
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/src/demangle/ItaniumDemangle.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h
index 5a53a18..04755e2 100644
--- a/libcxxabi/src/demangle/ItaniumDemangle.h
+++ b/libcxxabi/src/demangle/ItaniumDemangle.h
@@ -39,13 +39,12 @@
DEMANGLE_NAMESPACE_BEGIN
template <class T, size_t N> class PODSmallVector {
- static_assert(std::is_pod<T>::value,
- "T is required to be a plain old data type");
-
+ static_assert(std::is_trivial<T>::value,
+ "T is required to be a trivial type");
T *First = nullptr;
T *Last = nullptr;
T *Cap = nullptr;
- T Inline[N] = {0};
+ T Inline[N] = {};
bool isInline() const { return First == Inline; }