Skip to content

Commit 13c2a34

Browse files
committed
[Import as member] Temporary hack to work around a clang module cache issue
1 parent a51d433 commit 13c2a34

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,8 +2021,13 @@ static bool moduleIsInferImportAsMember(const clang::NamedDecl *decl,
20212021
}
20222022

20232023
while (submodule) {
2024-
if (submodule->IsSwiftInferImportAsMember)
2024+
if (submodule->IsSwiftInferImportAsMember) {
2025+
// HACK HACK HACK: This is a workaround for some module invalidation issue
2026+
// and inconsistency. This will go away soon.
2027+
if (submodule->Name != "CoreGraphics")
2028+
return false;
20252029
return true;
2030+
}
20262031
submodule = submodule->Parent;
20272032
}
20282033

0 commit comments

Comments
 (0)