diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-10-20 14:27:22 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-10-20 14:27:22 +0000 |
commit | fd352be22e927b1806bd13afc8b9b9ed8c0b1adc (patch) | |
tree | 6694865eb59588079952d3679509d0e241bb5612 /include/clang/Basic/SourceManager.h | |
parent | 6d0cbd7d8eb77b9df7f2e161fb70e877d944c29a (diff) | |
download | clang-fd352be22e927b1806bd13afc8b9b9ed8c0b1adc.tar.gz |
Retire llvm::alignOf in favor of C++11 alignof.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 7f1b31f69b..3e4ec36627 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -44,7 +44,6 @@ #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" #include "llvm/ADT/PointerIntPair.h" -#include "llvm/Support/AlignOf.h" #include "llvm/Support/Allocator.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/MemoryBuffer.h" @@ -226,7 +225,7 @@ namespace SrcMgr { // Assert that the \c ContentCache objects will always be 8-byte aligned so // that we can pack 3 bits of integer into pointers to such objects. - static_assert(llvm::AlignOf<ContentCache>::Alignment >= 8, + static_assert(alignof(ContentCache) >= 8, "ContentCache must be 8-byte aligned."); /// \brief Information about a FileID, basically just the logical file |