Skip to content

Commit a004bb2

Browse files
committed
Adapt to Hiding ASTContext::LoadedModules
Supports swiftlang/swift#32418
1 parent 61b9e27 commit a004bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
17231723
// part of the parse from the staging area in the external lookup
17241724
// object into the SwiftPersistentExpressionState.
17251725
swift::ModuleDecl *module = &parsed_expr->module;
1726-
parsed_expr->ast_context.LoadedModules.insert({module->getName(), module});
1726+
parsed_expr->ast_context.addLoadedModule(module);
17271727
swift_ast_ctx->CacheModule(module);
17281728
if (m_sc.target_sp) {
17291729
auto *persistent_state =

0 commit comments

Comments
 (0)