diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
| commit | 86cb31862f1ce14c3e6774ec9d84e51e47a43587 (patch) | |
| tree | 0f53e56ae15c3d8f8e169b55013f5c821e32a18d /llvm/lib/Support/Allocator.cpp | |
| parent | 9c0c60d0801847eead729ccab3791fb530faa224 (diff) | |
| download | bcm5719-llvm-86cb31862f1ce14c3e6774ec9d84e51e47a43587.tar.gz bcm5719-llvm-86cb31862f1ce14c3e6774ec9d84e51e47a43587.zip | |
Fix more -Wshorten-64-to-32 warnings.
llvm-svn: 50659
Diffstat (limited to 'llvm/lib/Support/Allocator.cpp')
| -rw-r--r-- | llvm/lib/Support/Allocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Allocator.cpp b/llvm/lib/Support/Allocator.cpp index 4b6f9ff7b13..ba6a393c81f 100644 --- a/llvm/lib/Support/Allocator.cpp +++ b/llvm/lib/Support/Allocator.cpp @@ -45,7 +45,7 @@ public: /// Allocate - Allocate and return at least the specified number of bytes. /// - void *Allocate(unsigned AllocSize, unsigned Alignment, MemRegion **RegPtr) { + void *Allocate(size_t AllocSize, size_t Alignment, MemRegion **RegPtr) { char* Result = (char*) (((uintptr_t) (NextPtr+Alignment-1)) & ~((uintptr_t) Alignment-1)); @@ -113,7 +113,7 @@ void BumpPtrAllocator::Reset() { TheMemory = MRP; } -void *BumpPtrAllocator::Allocate(unsigned Size, unsigned Align) { +void *BumpPtrAllocator::Allocate(size_t Size, size_t Align) { MemRegion *MRP = (MemRegion*)TheMemory; void *Ptr = MRP->Allocate(Size, Align, &MRP); TheMemory = MRP; |

