mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Represent the name of destructors by a special DeclBaseName
No longer use the known identifier `deinit` for destructors. This allows classes to have functions called `deinit`.
This commit is contained in:
@@ -1791,7 +1791,7 @@ void Serializer::writeCrossReference(const DeclContext *DC, uint32_t pathLen) {
|
||||
bool isProtocolExt = fn->getDeclContext()->getAsProtocolExtensionContext();
|
||||
XRefValuePathPieceLayout::emitRecord(Out, ScratchRecord, abbrCode,
|
||||
addTypeRef(ty),
|
||||
addDeclBaseNameRef(fn->getName()),
|
||||
addDeclBaseNameRef(fn->getBaseName()),
|
||||
isProtocolExt,
|
||||
fn->isStatic());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user