Skip to content

Commit 7e34fb0

Browse files
[ModuleTrace] More precise dependency tracking through ObjC.
We need to traverse the module dependency graph and track which modules expose which other modules' ABIs, while making sure that we don't hit a loop while trawling through Clang (sub)modules. Fixes rdar://64993153.
1 parent 5f6dd24 commit 7e34fb0

File tree

7 files changed

+355
-32
lines changed

7 files changed

+355
-32
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,6 +3409,8 @@ void ClangModuleUnit::getImportedModules(
34093409
if (filter.containsOnly(ModuleDecl::ImportFilterKind::ImplementationOnly))
34103410
return;
34113411

3412+
// [Note: Pure-Clang-modules-privately-import-stdlib]:
3413+
// Needed for implicitly synthesized conformances.
34123414
if (filter.contains(ModuleDecl::ImportFilterKind::Private))
34133415
if (auto stdlib = owner.getStdlibModule())
34143416
imports.push_back({ModuleDecl::AccessPathTy(), stdlib});

0 commit comments

Comments
 (0)