mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL representation
This commit is contained in:
@@ -3114,12 +3114,15 @@ public:
|
||||
}
|
||||
|
||||
void noteUseOfExportedPrespecialization(const AbstractFunctionDecl *afd) {
|
||||
bool hasNoted = false;
|
||||
for (auto *A : afd->getAttrs().getAttributes<SpecializeAttr>()) {
|
||||
auto *SA = cast<SpecializeAttr>(A);
|
||||
if (!SA->isExported())
|
||||
continue;
|
||||
if (auto *targetFunctionDecl = SA->getTargetFunctionDecl(afd)) {
|
||||
exportedPrespecializationDecls.push_back(S.addDeclRef(afd));
|
||||
if (!hasNoted)
|
||||
exportedPrespecializationDecls.push_back(S.addDeclRef(afd));
|
||||
hasNoted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user