summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2009-03-10 23:48:49 +0000
committerMon P Wang <wangmp@apple.com>2009-03-10 23:48:49 +0000
commit1073de0d7351f45ac7943f9cd65def9871713dc1 (patch)
tree3091a12f5974a89072e3623e422af1c650c0d4de /llvm
parent0760fa16183831e487de3713503de7a9fecef9e3 (diff)
downloadbcm5719-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.h4
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));
}
OpenPOWER on IntegriCloud