Skip to content

Commit b57791e

Browse files
committed
Clear the Clang type cache when new modules are loaded
1 parent 27de569 commit b57791e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,6 +1490,7 @@ void TypeSystemSwiftTypeRef::NotifyAllTypeSystems(
14901490
void TypeSystemSwiftTypeRefForExpressions::ModulesDidLoad(
14911491
ModuleList &module_list) {
14921492
++m_generation;
1493+
m_clang_type_cache.Clear();
14931494
NotifyAllTypeSystems([&](TypeSystemSP ts_sp) {
14941495
if (auto swift_ast_ctx =
14951496
llvm::dyn_cast_or_null<SwiftASTContextForExpressions>(ts_sp.get()))

0 commit comments

Comments
 (0)