mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] A module that shadows a system module, should be considered a system one as well.
Fixes rdar://16092932 Swift SVN r14263
This commit is contained in:
@@ -270,6 +270,13 @@ void SerializedASTFile::collectLinkLibraries(
|
||||
File.collectLinkLibraries(callback);
|
||||
}
|
||||
|
||||
bool SerializedASTFile::isSystemModule() const {
|
||||
if (auto Mod = File.getShadowedModule()) {
|
||||
return Mod->isSystemModule();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void SerializedASTFile::lookupValue(Module::AccessPathTy accessPath,
|
||||
Identifier name, NLKind lookupKind,
|
||||
SmallVectorImpl<ValueDecl*> &results) const{
|
||||
|
||||
Reference in New Issue
Block a user