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 | b2505005c7289bf4ca3d22612d86c1029a6c3b4d (patch) | |
| tree | 2757f2135bc9f7009365117cf907a76ac3164e7c /llvm/lib/ProfileData | |
| parent | 5d8cdb83db58829bacc8d5478030b41a20acaf19 (diff) | |
| download | bcm5719-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.cpp | 2 |
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); |

