Skip to content

Commit 05db6ab

Browse files
committed
Adapt to Hiding ASTContext::LoadedModules
Supports swiftlang/swift#32418
1 parent 94f1132 commit 05db6ab

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
@@ -1729,7 +1729,7 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
17291729
// part of the parse from the staging area in the external lookup
17301730
// object into the SwiftPersistentExpressionState.
17311731
swift::ModuleDecl *module = &parsed_expr->module;
1732-
parsed_expr->ast_context.LoadedModules.insert({module->getName(), module});
1732+
parsed_expr->ast_context.addLoadedModule(module);
17331733
swift_ast_ctx->CacheModule(module);
17341734
if (m_sc.target_sp) {
17351735
auto *persistent_state =

0 commit comments

Comments
 (0)