From 34cd4a484e532cc463fd5a4bf59b88d13c5467c1 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 5 May 2008 18:30:58 +0000 Subject: Fix more -Wshorten-64-to-32 warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/Support/Allocator.h') diff --git a/include/llvm/Support/Allocator.h b/include/llvm/Support/Allocator.h index fc82597be4..33cdca13e6 100644 --- a/include/llvm/Support/Allocator.h +++ b/include/llvm/Support/Allocator.h @@ -25,7 +25,7 @@ public: ~MallocAllocator() {} void Reset() {} - void *Allocate(unsigned Size, unsigned Alignment) { return malloc(Size); } + void *Allocate(size_t Size, size_t Alignment) { return malloc(Size); } template void *Allocate() { return reinterpret_cast(malloc(sizeof(T))); } @@ -45,7 +45,7 @@ public: ~BumpPtrAllocator(); void Reset(); - void *Allocate(unsigned Size, unsigned Alignment); + void *Allocate(size_t Size, size_t Alignment); template void *Allocate() { -- cgit v1.2.3