diff options
author | hiddenpath <hiddenpath@yandex-team.com> | 2024-01-31 23:08:08 +0300 |
---|---|---|
committer | hiddenpath <hiddenpath@yandex-team.com> | 2024-01-31 23:27:13 +0300 |
commit | be250f6ff0e19999659615378a17bd389d53a569 (patch) | |
tree | 966647e8af5922d2c0a23852f4df05c3064df948 /contrib/libs/llvm16/include/llvm/Demangle | |
parent | 08217afa691874f76c2cd3ff0c386dad2c3252f7 (diff) | |
download | ydb-be250f6ff0e19999659615378a17bd389d53a569.tar.gz |
Fix deprecated pod type in llvm / libcxxabi
https://github.com/llvm/llvm-project/commit/fd0637cfe835d6d4d0d3ebde3663f94a7bb3cd76
Diffstat (limited to 'contrib/libs/llvm16/include/llvm/Demangle')
-rw-r--r-- | contrib/libs/llvm16/include/llvm/Demangle/ItaniumDemangle.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/libs/llvm16/include/llvm/Demangle/ItaniumDemangle.h b/contrib/libs/llvm16/include/llvm/Demangle/ItaniumDemangle.h index afa87b4104..838b3b30d6 100644 --- a/contrib/libs/llvm16/include/llvm/Demangle/ItaniumDemangle.h +++ b/contrib/libs/llvm16/include/llvm/Demangle/ItaniumDemangle.h @@ -34,18 +34,19 @@ #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_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; } |