mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove copy constructors and assignment operators from RelativeDirectPointerImpl.
There were places were RelativeDirectPointers were copied using bitwise copies, which is semantically wrong. This patch makes sure it cannot happen anymore.
This commit is contained in:
@@ -65,7 +65,7 @@ template<> void ProtocolConformanceRecord::dump() const {
|
||||
printf("%s direct type ",
|
||||
kind == TypeMetadataRecordKind::UniqueDirectType
|
||||
? "unique" : "nonunique");
|
||||
if (auto ntd = getDirectType()->getNominalTypeDescriptor()) {
|
||||
if (auto &ntd = getDirectType()->getNominalTypeDescriptor()) {
|
||||
printf("%s", ntd->Name.get());
|
||||
} else {
|
||||
printf("<structural type>");
|
||||
|
||||
Reference in New Issue
Block a user