mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge branch 'main' into rebranch
# Conflicts: # lib/SILOptimizer/Differentiation/Common.cpp
This commit is contained in:
@@ -3419,6 +3419,9 @@ bool SourceFile::isImportedAsSPI(const ValueDecl *targetDecl) const {
|
||||
if (shouldImplicitImportAsSPI(targetDecl->getSPIGroups()))
|
||||
return true;
|
||||
|
||||
if (hasTestableOrPrivateImport(AccessLevel::Public, targetDecl, PrivateOnly))
|
||||
return true;
|
||||
|
||||
lookupImportedSPIGroups(targetModule, importedSPIGroups);
|
||||
if (importedSPIGroups.empty())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user