summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/MallocAllocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/Support/MallocAllocator.h')
-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