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 | 17323bb7cfb8a75adaf0e686efcf5a5629cbe2da (patch) | |
| tree | 0745d129d57147062db5e092b2b15e69daa5ec84 | |
| parent | a5ca57838477e23ed4fccf36f1291cd3636efbbd (diff) | |
| download | bcm5719-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.h | 2 |
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 |

