aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 4a04ccc..c0414f9 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 <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));
}