IRGen: @_fixed_layout classes still have resilient metadata

This commit is contained in:
Slava Pestov
2018-11-28 20:03:42 -05:00
parent 16a459d0f1
commit ff09603f30
15 changed files with 334 additions and 179 deletions

View File

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