[llvm-commits] [llvm] r66609 - /llvm/branches/Apple/Dib/include/llvm/Support/Allocator.h
Bill Wendling
isanbard at gmail.com
Tue Mar 10 17:01:04 PDT 2009
Author: void
Date: Tue Mar 10 19:01:03 2009
New Revision: 66609
URL: http://llvm.org/viewvc/llvm-project?rev=66609&view=rev
Log:
--- Merging (from foreign repository) r66602 into '.':
U include/llvm/Support/Allocator.h
Changed Allocate to use size_t instead of unsigned.
Modified:
llvm/branches/Apple/Dib/include/llvm/Support/Allocator.h
Modified: llvm/branches/Apple/Dib/include/llvm/Support/Allocator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/include/llvm/Support/Allocator.h?rev=66609&r1=66608&r2=66609&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/include/llvm/Support/Allocator.h (original)
+++ llvm/branches/Apple/Dib/include/llvm/Support/Allocator.h Tue Mar 10 19:01:03 2009
@@ -75,9 +75,9 @@
/// 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));
}
More information about the llvm-commits
mailing list