Skip to content

Commit 4153c2d

Browse files
committed
[ProfileData] Avoid deprecated is_pod
1 parent 7787328 commit 4153c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ProfileData/MemProfReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace llvm {
4545
namespace memprof {
4646
namespace {
4747
template <class T = uint64_t> inline T alignedRead(const char *Ptr) {
48-
static_assert(std::is_pod<T>::value, "Not a pod type.");
48+
static_assert(std::is_integral_v<T>, "Not an integral type");
4949
assert(reinterpret_cast<size_t>(Ptr) % sizeof(T) == 0 && "Unaligned Read");
5050
return *reinterpret_cast<const T *>(Ptr);
5151
}

0 commit comments

Comments
 (0)