aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Allocator.h
diff options
context:
space:
mode:
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 e39c5c1..cdb0fc8 100644
--- a/include/llvm/Support/Allocator.h
+++ b/include/llvm/Support/Allocator.h
@@ -192,8 +192,8 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
} x;
#endif
};
- return Allocator.Allocate(Size, std::min(llvm::NextPowerOf2(Size),
- offsetof(S, x)));
+ return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
+ (size_t)offsetof(S, x)));
}
#endif // LLVM_SUPPORT_ALLOCATOR_H