mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix build errors with clang-421.
Swift SVN r1167
This commit is contained in:
@@ -279,7 +279,7 @@ TypeAliasDecl *Module::lookupGlobalType(Identifier Name, NLKind LookupKind) {
|
||||
|
||||
// If we still haven't found it, scrape through all of the imports, taking the
|
||||
// first match of the name.
|
||||
for (auto &ImpEntry : TU.ImportedModules) {
|
||||
for (auto &ImpEntry : TU.getImportedModules()) {
|
||||
TAD = ImpEntry.second->lookupType(ImpEntry.first, Name, LookupKind);
|
||||
if (TAD) return TAD; // If we found a match, return the decl.
|
||||
}
|
||||
@@ -305,7 +305,7 @@ void Module::lookupGlobalValue(Identifier Name, NLKind LookupKind,
|
||||
|
||||
// If we still haven't found it, scrape through all of the imports, taking the
|
||||
// first match of the name.
|
||||
for (auto &ImpEntry : TU.ImportedModules) {
|
||||
for (auto &ImpEntry : TU.getImportedModules()) {
|
||||
ImpEntry.second->lookupValue(ImpEntry.first, Name, LookupKind, Result);
|
||||
if (!Result.empty()) return; // If we found a match, return the decls.
|
||||
}
|
||||
@@ -333,7 +333,7 @@ void Module::lookupGlobalExtensionMethods(Type BaseType, Identifier Name,
|
||||
TranslationUnit &TU = *cast<TranslationUnit>(this);
|
||||
|
||||
// Otherwise, check our imported extensions as well.
|
||||
for (auto &ImpEntry : TU.ImportedModules) {
|
||||
for (auto &ImpEntry : TU.getImportedModules()) {
|
||||
for (ExtensionDecl *ED : ImpEntry.second->lookupExtensions(BaseType)) {
|
||||
for (Decl *Member : ED->getMembers()) {
|
||||
if (ValueDecl *VD = dyn_cast<ValueDecl>(Member))
|
||||
|
||||
Reference in New Issue
Block a user