diff options
-rw-r--r-- | include/Support/MallocAllocator.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/MallocAllocator.h | 4 |
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); } |