mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Add mandatory SIL pass implementing '@_alwaysEmitConformanceMetadata' protocol attribute"
This commit is contained in:
@@ -1330,11 +1330,6 @@ bool IRGenerator::canEmitWitnessTableLazily(SILWitnessTable *wt) {
|
||||
if (wt->getLinkage() == SILLinkage::Shared)
|
||||
return true;
|
||||
|
||||
// Check if this type is set to be explicitly externally visible
|
||||
NominalTypeDecl *ConformingTy = wt->getConformingNominal();
|
||||
if (PrimaryIGM->getSILModule().isExternallyVisibleDecl(ConformingTy))
|
||||
return false;
|
||||
|
||||
switch (wt->getConformingNominal()->getEffectiveAccess()) {
|
||||
case AccessLevel::Private:
|
||||
case AccessLevel::FilePrivate:
|
||||
|
||||
Reference in New Issue
Block a user