diff options
author | Mon P Wang <wangmp@apple.com> | 2009-03-10 23:48:49 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2009-03-10 23:48:49 +0000 |
commit | 535f390bc30973fdcf29f616896bd96dd49e1737 (patch) | |
tree | 25770486426540aa7ff4e90082b4642e07b44009 | |
parent | 7f3030c471d32d56c1429c8d3c331306e39a2570 (diff) | |
download | external_llvm-535f390bc30973fdcf29f616896bd96dd49e1737.zip external_llvm-535f390bc30973fdcf29f616896bd96dd49e1737.tar.gz external_llvm-535f390bc30973fdcf29f616896bd96dd49e1737.tar.bz2 |
Changed Allocate to use size_t instead of unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66602 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/Allocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index 4a04ccc..c0414f9 100644 --- a/include/llvm/Support/Allocator.h +++ b/include/llvm/Support/Allocator.h @@ -75,9 +75,9 @@ public: /// Allocate space for a specific count of elements and with a specified /// alignment. template <typename T> - T *Allocate(size_t Num, unsigned Alignment) { + T *Allocate(size_t Num, size_t Alignment) { // Round EltSize up to the specified alignment. - unsigned EltSize = (sizeof(T)+Alignment-1)&(-Alignment); + size_t EltSize = (sizeof(T)+Alignment-1)&(-Alignment); return static_cast<T*>(Allocate(Num * EltSize, Alignment)); } |