From fc42785a60fc4fba32e84286e5fae4f5f776884e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Nov 2003 15:20:06 +0000 Subject: [PATCH] Add some ctors for this allocator llvm-svn: 9766 --- llvm/include/Support/MallocAllocator.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/Support/MallocAllocator.h b/llvm/include/Support/MallocAllocator.h index 98957d4c8e9c..e063f312ab25 100644 --- a/llvm/include/Support/MallocAllocator.h +++ b/llvm/include/Support/MallocAllocator.h @@ -36,6 +36,10 @@ struct MallocAllocator { typedef MallocAllocator other; }; + template + MallocAllocator(const MallocAllocator &) {} + MallocAllocator() {} + pointer address(reference x) const { return &x; } const_pointer address(const_reference x) const { return &x; } size_type max_size() const { return ~0 / sizeof(T); }