Skip to content

Commit 497e049

Browse files
Merge pull request swiftlang#32738 from varungandhi-apple/vg-fix-indirect-dep
[ModuleTrace] Track direct dependencies through #import and @_exported import
2 parents efe4a8d + 7e34fb0 commit 497e049

File tree

10 files changed

+487
-16
lines changed

10 files changed

+487
-16
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)