summaryrefslogtreecommitdiffstats
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
commitfc42785a60fc4fba32e84286e5fae4f5f776884e (patch)
tree21f51568732a4784a289d8b36ca153250589dfd2
parent65cac90a927b5bc954e8d7f7f0de2a4669e5788f (diff)
downloadbcm5719-llvm-fc42785a60fc4fba32e84286e5fae4f5f776884e.tar.gz
bcm5719-llvm-fc42785a60fc4fba32e84286e5fae4f5f776884e.zip
Add some ctors for this allocator
llvm-svn: 9766
-rw-r--r--llvm/include/Support/MallocAllocator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/Support/MallocAllocator.h b/llvm/include/Support/MallocAllocator.h
index 98957d4c8e9..e063f312ab2 100644
--- a/llvm/include/Support/MallocAllocator.h
+++ b/llvm/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); }
OpenPOWER on IntegriCloud