summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-10-20 15:02:18 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-10-20 15:02:18 +0000
commitb2505005c7289bf4ca3d22612d86c1029a6c3b4d (patch)
tree2757f2135bc9f7009365117cf907a76ac3164e7c /llvm/lib/ProfileData
parent5d8cdb83db58829bacc8d5478030b41a20acaf19 (diff)
downloadbcm5719-llvm-b2505005c7289bf4ca3d22612d86c1029a6c3b4d.tar.gz
bcm5719-llvm-b2505005c7289bf4ca3d22612d86c1029a6c3b4d.zip
Retire llvm::alignOf in favor of C++11 alignof.
No functionality change intended. llvm-svn: 284733
Diffstat (limited to 'llvm/lib/ProfileData')
-rw-r--r--llvm/lib/ProfileData/InstrProfReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index ed927a98604..ad407f07957 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud