We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7787328 commit 4153c2dCopy full SHA for 4153c2d
llvm/lib/ProfileData/MemProfReader.cpp
@@ -45,7 +45,7 @@ namespace llvm {
45
namespace memprof {
46
namespace {
47
template <class T = uint64_t> inline T alignedRead(const char *Ptr) {
48
- static_assert(std::is_pod<T>::value, "Not a pod type.");
+ static_assert(std::is_integral_v<T>, "Not an integral type");
49
assert(reinterpret_cast<size_t>(Ptr) % sizeof(T) == 0 && "Unaligned Read");
50
return *reinterpret_cast<const T *>(Ptr);
51
}
0 commit comments