From 02de0986b97ccedccde7b770bc425191d5310efa Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 11 Jun 2013 17:58:38 +0000 Subject: [PATCH] Make ASTContext::Allocate use size_t for the size argument. llvm-svn: 183757 --- clang/include/clang/AST/ASTContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index 324185f0900c..9361ebea1b21 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -457,7 +457,7 @@ public: return BumpAlloc; } - void *Allocate(unsigned Size, unsigned Align = 8) const { + void *Allocate(size_t Size, unsigned Align = 8) const { return BumpAlloc.Allocate(Size, Align); } void Deallocate(void *Ptr) const { } -- GitLab