Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lldb/source/Plugins/Language/Swift/SwiftLanguage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ std::unique_ptr<Language::TypeScavenger> SwiftLanguage::GetTypeScavenger() {
swift::ModuleDecl::AccessPathTy access_path;

for (auto imported_module : swift::namelookup::getAllImports(module)) {
auto module = imported_module.second;
auto module = imported_module.importedModule;
TypesOrDecls local_results;
ast_ctx->FindTypesOrDecls(input, module, local_results,
false);
Expand Down
4 changes: 2 additions & 2 deletions lldb/source/Symbol/SwiftASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4047,7 +4047,7 @@ void SwiftASTContext::LoadModule(swift::ModuleDecl *swift_module,
};

for (auto import : swift::namelookup::getAllImports(swift_module)) {
import.second->collectLinkLibraries(addLinkLibrary);
import.importedModule->collectLinkLibraries(addLinkLibrary);
}
error = current_error;
}
Expand Down Expand Up @@ -8466,7 +8466,7 @@ bool SwiftASTContext::CacheUserImports(SwiftASTContext &swift_ast_context,
sc.target_sp->GetSwiftPersistentExpressionState(exe_scope);

for (auto module_pair : parsed_imports) {
swift::ModuleDecl *module = module_pair.second;
swift::ModuleDecl *module = module_pair.importedModule;
if (module) {
std::string module_name;
GetNameFromModule(module, module_name);
Expand Down