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 | 1073de0d7351f45ac7943f9cd65def9871713dc1 (patch) | |
tree | 3091a12f5974a89072e3623e422af1c650c0d4de /llvm | |
parent | 0760fa16183831e487de3713503de7a9fecef9e3 (diff) | |
download | bcm5719-llvm-1073de0d7351f45ac7943f9cd65def9871713dc1.tar.gz bcm5719-llvm-1073de0d7351f45ac7943f9cd65def9871713dc1.zip |
Changed Allocate to use size_t instead of unsigned.
llvm-svn: 66602
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/Allocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/Allocator.h b/llvm/include/llvm/Support/Allocator.h index 4a04ccc382e..c0414f970a2 100644 --- a/llvm/include/llvm/Support/Allocator.h +++ b/llvm/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)); } |