mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Accessors synthesized on-demand are serialized when visible outside the module
Second part of <https://bugs.swift.org/browse/SR-8657> / <rdar://problem/43951732>.
This commit is contained in:
@@ -337,6 +337,10 @@ static void maybeMarkTransparent(TypeChecker &TC, AccessorDecl *accessor) {
|
||||
if (classDecl->checkObjCAncestry() != ObjCClassKind::NonObjC)
|
||||
return;
|
||||
|
||||
// Accessors synthesized on-demand are never transaprent.
|
||||
if (accessor->hasForcedStaticDispatch())
|
||||
return;
|
||||
|
||||
accessor->getAttrs().add(new (TC.Context) TransparentAttr(IsImplicit));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user