mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Private methods of open resilient classes don't need to be public
Private methods of non-resilient classes can be referenced from outside the module, but resilient classes build the vtable at runtime so we don't need that hack there.
This commit is contained in:
@@ -912,6 +912,8 @@ SubclassScope SILDeclRef::getSubclassScope() const {
|
||||
case AccessLevel::Public:
|
||||
return SubclassScope::Internal;
|
||||
case AccessLevel::Open:
|
||||
if (classType->isResilient())
|
||||
return SubclassScope::Internal;
|
||||
return SubclassScope::External;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user