summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-18 19:37:35 +0000
committerDan Gohman <gohman@apple.com>2010-03-18 19:37:35 +0000
commit17323bb7cfb8a75adaf0e686efcf5a5629cbe2da (patch)
tree0745d129d57147062db5e092b2b15e69daa5ec84
parenta5ca57838477e23ed4fccf36f1291cd3636efbbd (diff)
downloadbcm5719-llvm-17323bb7cfb8a75adaf0e686efcf5a5629cbe2da.tar.gz
bcm5719-llvm-17323bb7cfb8a75adaf0e686efcf5a5629cbe2da.zip
offsetof always has type size_t.
llvm-svn: 98854
-rw-r--r--llvm/include/llvm/Support/Allocator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Allocator.h b/llvm/include/llvm/Support/Allocator.h
index cdb0fc85582..b1f59dc05e7 100644
--- a/llvm/include/llvm/Support/Allocator.h
+++ b/llvm/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
OpenPOWER on IntegriCloud