From: Dan Gohman Date: Thu, 18 Mar 2010 19:37:35 +0000 (+0000) Subject: offsetof always has type size_t. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=debbef20ee27e7808a81f261fd9da6c87c6179f0;p=oota-llvm.git offsetof always has type size_t. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98854 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index cdb0fc85582..b1f59dc05e7 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