File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ SourceLookupCache::SourceLookupCache(const SourceFile &SF) {
312
312
FrontendStatsTracer tracer (SF.getASTContext ().Stats ,
313
313
" source-file-populate-cache" );
314
314
addToUnqualifiedLookupCache (SF.getTopLevelDecls (), false );
315
+ addToUnqualifiedLookupCache (SF.getHoistedDecls (), false );
315
316
}
316
317
317
318
SourceLookupCache::SourceLookupCache (const ModuleDecl &M) {
@@ -322,8 +323,9 @@ SourceLookupCache::SourceLookupCache(const ModuleDecl &M) {
322
323
addToUnqualifiedLookupCache (SFU->getTopLevelDecls (), false );
323
324
continue ;
324
325
}
325
- auto &SF = *cast<SourceFile>(file);
326
- addToUnqualifiedLookupCache (SF.getTopLevelDecls (), false );
326
+ auto *SF = cast<SourceFile>(file);
327
+ addToUnqualifiedLookupCache (SF->getTopLevelDecls (), false );
328
+ addToUnqualifiedLookupCache (SF->getHoistedDecls (), false );
327
329
}
328
330
}
329
331
You can’t perform that action at this time.
0 commit comments