From: Chris Lattner Date: Fri, 7 Nov 2003 15:20:06 +0000 (+0000) Subject: Add some ctors for this allocator X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f0d6b493f207b63ee1a56d59595502718f603779;p=oota-llvm.git Add some ctors for this allocator git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9766 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/MallocAllocator.h b/include/Support/MallocAllocator.h index 98957d4c8e9..e063f312ab2 100644 --- a/include/Support/MallocAllocator.h +++ b/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); } diff --git a/include/llvm/Support/MallocAllocator.h b/include/llvm/Support/MallocAllocator.h index 98957d4c8e9..e063f312ab2 100644 --- a/include/llvm/Support/MallocAllocator.h +++ b/include/llvm/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); }