diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-18 19:37:35 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-18 19:37:35 +0000 |
commit | debbef20ee27e7808a81f261fd9da6c87c6179f0 (patch) | |
tree | 22a6c05a2e529597477927579ca926f8d5e3895c | |
parent | 40b037ef611efc5c43ffc43a911d0eb57e0d444d (diff) |
offsetof always has type size_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98854 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/Allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index cdb0fc8558..b1f59dc05e 100644 --- a/include/llvm/Support/Allocator.h +++ b/include/llvm/Support/Allocator.h @@ -193,7 +193,7 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) { #endif }; return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size), - (size_t)offsetof(S, x))); + offsetof(S, x))); } #endif // LLVM_SUPPORT_ALLOCATOR_H |