Skip to content

Commit 793d87e

Browse files
committed
[Concurrency] Add missing constructors.
Seems I forgot some constructors (this was causing build failures on Linux and Windows, but not macOS). rdar://137286187
1 parent 54a4955 commit 793d87e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/swift/Runtime/Heap.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ struct cxx_allocator {
120120
typedef cxx_allocator<U> other;
121121
};
122122

123+
cxx_allocator() noexcept {}
124+
cxx_allocator(const cxx_allocator &other) noexcept { (void)other; }
125+
126+
template <class U>
127+
cxx_allocator(const cxx_allocator<U> &other) noexcept { (void)other; }
128+
129+
~cxx_allocator() {}
130+
123131
pointer address(reference x) const noexcept {
124132
return reinterpret_cast<pointer>(&reinterpret_cast<volatile char &>(x));
125133
}

0 commit comments

Comments
 (0)