From 535f390bc30973fdcf29f616896bd96dd49e1737 Mon Sep 17 00:00:00 2001 From: Mon P Wang Date: Tue, 10 Mar 2009 23:48:49 +0000 Subject: [PATCH] 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 --- include/llvm/Support/Allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index 4a04ccc382e..c0414f970a2 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 - 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(Allocate(Num * EltSize, Alignment)); }