summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Allocator.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-05 18:30:58 +0000
commit34cd4a484e532cc463fd5a4bf59b88d13c5467c1 (patch)
treeeefdfb1d225da0317e7f7912079c430b5c3ed92c /include/llvm/Support/Allocator.h
parentb61bfdb56e1c018f10a2c1c9fb49d7e2a78ed24e (diff)
downloadllvm-34cd4a484e532cc463fd5a4bf59b88d13c5467c1.tar.gz
llvm-34cd4a484e532cc463fd5a4bf59b88d13c5467c1.tar.bz2
llvm-34cd4a484e532cc463fd5a4bf59b88d13c5467c1.tar.xz
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Allocator.h')
-rw-r--r--include/llvm/Support/Allocator.h4
1 files changed, 2 insertions, 2 deletions
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 <typename T>
void *Allocate() { return reinterpret_cast<T*>(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 <typename T>
void *Allocate() {