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:
Roman Levenstein
2016-06-29 16:47:30 -07:00
parent 75e10a66cc
commit 40b8fd58fe
4 changed files with 37 additions and 16 deletions

View File

@@ -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>");