mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: @_fixed_layout classes still have resilient metadata
This commit is contained in:
@@ -928,6 +928,9 @@ SubclassScope SILDeclRef::getSubclassScope() const {
|
||||
assert(FD->getEffectiveAccess() <= classType->getEffectiveAccess() &&
|
||||
"class must be as visible as its members");
|
||||
|
||||
// FIXME: This is too narrow. Any class with resilient metadata should
|
||||
// probably have this, at least for method overrides that don't add new
|
||||
// vtable entries.
|
||||
if (classType->isResilient())
|
||||
return SubclassScope::Resilient;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user