We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aae0881 + dec54dd commit 50531f2Copy full SHA for 50531f2
lib/IRGen/GenDecl.cpp
@@ -2397,6 +2397,11 @@ LinkInfo LinkInfo::get(const UniversalLinkageInfo &linkInfo,
2397
// types to be referenced directly.
2398
if (const auto *MD = entity.getSILFunction()->getParentModule())
2399
isKnownLocal = MD == swiftModule || MD->isStaticLibrary();
2400
+ } else if (entity.isTypeMetadataAccessFunction()) {
2401
+ if (NominalTypeDecl *NTD = entity.getType()->getAnyNominal()) {
2402
+ const ModuleDecl *MD = NTD->getDeclContext()->getParentModule();
2403
+ isKnownLocal = MD == swiftModule || MD->isStaticLibrary();
2404
+ }
2405
}
2406
2407
bool weakImported = entity.isWeakImported(swiftModule);
0 commit comments