Differential Revision: https://reviews.llvm.org/D145693
#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; }