Skip to content

Commit a07d292

Browse files
authored
Adjusted to match SR-12247 changing ModuleDecl::ImportedModule from a std::pair to a struct. (#1156)
1 parent fb80c0c commit a07d292

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/source/Plugins/Language/Swift/SwiftLanguage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ std::unique_ptr<Language::TypeScavenger> SwiftLanguage::GetTypeScavenger() {
12671267
swift::ModuleDecl::AccessPathTy access_path;
12681268

12691269
for (auto imported_module : swift::namelookup::getAllImports(module)) {
1270-
auto module = imported_module.second;
1270+
auto module = imported_module.importedModule;
12711271
TypesOrDecls local_results;
12721272
ast_ctx->FindTypesOrDecls(input, module, local_results,
12731273
false);

lldb/source/Symbol/SwiftASTContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,7 +4047,7 @@ void SwiftASTContext::LoadModule(swift::ModuleDecl *swift_module,
40474047
};
40484048

40494049
for (auto import : swift::namelookup::getAllImports(swift_module)) {
4050-
import.second->collectLinkLibraries(addLinkLibrary);
4050+
import.importedModule->collectLinkLibraries(addLinkLibrary);
40514051
}
40524052
error = current_error;
40534053
}
@@ -8466,7 +8466,7 @@ bool SwiftASTContext::CacheUserImports(SwiftASTContext &swift_ast_context,
84668466
sc.target_sp->GetSwiftPersistentExpressionState(exe_scope);
84678467

84688468
for (auto module_pair : parsed_imports) {
8469-
swift::ModuleDecl *module = module_pair.second;
8469+
swift::ModuleDecl *module = module_pair.importedModule;
84708470
if (module) {
84718471
std::string module_name;
84728472
GetNameFromModule(module, module_name);

0 commit comments

Comments
 (0)