Skip to content

Commit f155ce8

Browse files
authored
Merge pull request #32375 from hamishknight/cached-my-last-rain-check
2 parents 80e2b48 + 4b1ffa5 commit f155ce8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/AST/NameLookup.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,12 @@ DirectLookupRequest::evaluate(Evaluator &evaluator,
13311331

13321332
decl->prepareLookupTable();
13331333

1334+
// If we're allowed to load extensions, call prepareExtensions to ensure we
1335+
// properly invalidate the lazily-complete cache for any extensions brought in
1336+
// by modules loaded after-the-fact. This can happen with the LLDB REPL.
1337+
if (!disableAdditionalExtensionLoading)
1338+
decl->prepareExtensions();
1339+
13341340
auto &Table = *decl->LookupTable;
13351341
if (!useNamedLazyMemberLoading) {
13361342
// Make sure we have the complete list of members (in this nominal and in

0 commit comments

Comments
 (0)