We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f41deb0 + fb092d9 commit 1ffe3ebCopy full SHA for 1ffe3eb
include/swift/Remote/MetadataReader.h
@@ -70,10 +70,21 @@ class RemoteRef {
70
explicit RemoteRef(StoredPointer address, const T *localBuffer)
71
: Address((uint64_t)address), LocalBuffer(localBuffer) {}
72
73
+ // <rdar://99715218> Some versions of clang++ sometimes fail to generate the
74
+ // copy constructor for this type correctly - add a workaround
75
+ RemoteRef(const RemoteRef &other)
76
+ : Address(other.Address), LocalBuffer(other.LocalBuffer) {}
77
+
78
+ RemoteRef& operator=(const RemoteRef &other) {
79
+ Address = other.Address;
80
+ LocalBuffer = other.LocalBuffer;
81
+ return *this;
82
+ }
83
84
uint64_t getAddressData() const {
85
return Address;
86
}
-
87
88
const T *getLocalBuffer() const {
89
return LocalBuffer;
90
0 commit comments