aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-07 15:20:06 +0000
committerChris Lattner <sabre@nondot.org>2003-11-07 15:20:06 +0000
commitf0d6b493f207b63ee1a56d59595502718f603779 (patch)
tree8b2b817b4773784bd0fb921af9757a9fe2275d5d
parentaf955ba503e37c3e1efb694a01bce84b7e5d05a7 (diff)
Add some ctors for this allocator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9766 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/Support/MallocAllocator.h4
-rw-r--r--include/llvm/Support/MallocAllocator.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/Support/MallocAllocator.h b/include/Support/MallocAllocator.h
index 98957d4c8e..e063f312ab 100644
--- a/include/Support/MallocAllocator.h
+++ b/include/Support/MallocAllocator.h
@@ -36,6 +36,10 @@ struct MallocAllocator {
typedef MallocAllocator<U> other;
};
+ template<typename R>
+ MallocAllocator(const MallocAllocator<R> &) {}
+ 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 98957d4c8e..e063f312ab 100644
--- a/include/llvm/Support/MallocAllocator.h
+++ b/include/llvm/Support/MallocAllocator.h
@@ -36,6 +36,10 @@ struct MallocAllocator {
typedef MallocAllocator<U> other;
};
+ template<typename R>
+ MallocAllocator(const MallocAllocator<R> &) {}
+ 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); }