diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-10-20 15:02:18 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-10-20 15:02:18 +0000 |
commit | cb58e1e3bce2898afcd189005154089f4211b005 (patch) | |
tree | 8b703ea8f4675edcfd8ac8c9dc2ebe9dcfc6a552 /lib/ProfileData/InstrProfReader.cpp | |
parent | 2913220dd601f5593de5c88a52fd07018885e738 (diff) |
Retire llvm::alignOf in favor of C++11 alignof.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ProfileData/InstrProfReader.cpp')
-rw-r--r-- | lib/ProfileData/InstrProfReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ProfileData/InstrProfReader.cpp b/lib/ProfileData/InstrProfReader.cpp index ed927a98604..ad407f07957 100644 --- a/lib/ProfileData/InstrProfReader.cpp +++ b/lib/ProfileData/InstrProfReader.cpp @@ -289,7 +289,7 @@ Error RawInstrProfReader<IntPtrT>::readNextHeader(const char *CurrentPos) { if (CurrentPos + sizeof(RawInstrProf::Header) > End) return make_error<InstrProfError>(instrprof_error::malformed); // The writer ensures each profile is padded to start at an aligned address. - if (reinterpret_cast<size_t>(CurrentPos) % alignOf<uint64_t>()) + if (reinterpret_cast<size_t>(CurrentPos) % alignof(uint64_t)) return make_error<InstrProfError>(instrprof_error::malformed); // The magic should have the same byte order as in the previous header. uint64_t Magic = *reinterpret_cast<const uint64_t *>(CurrentPos); |