Skip to content

Commit 386c8eb

Browse files
committed
[cxx-interop] Do not import std::chrono::time_zone_link
This type is non-copyable, but its implementation in libstdc++13 does not explicitly declare a deleted copy constructor. After rebranch, we should start using API Notes to annotate the type as a non-copyable type in Swift. For now, this change disables import of this type. See #73086 rdar://134432426
1 parent 4921eaf commit 386c8eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2656,7 +2656,8 @@ namespace {
26562656
// FIXME: https://github.com/apple/swift/issues/73037
26572657
if (decl->getDeclContext()->isNamespace() &&
26582658
decl->getDeclContext()->getParent()->isStdNamespace() &&
2659-
decl->getIdentifier() && decl->getName() == "tzdb")
2659+
decl->getIdentifier() &&
2660+
(decl->getName() == "tzdb" || decl->getName() == "time_zone_link"))
26602661
return nullptr;
26612662

26622663
auto &clangSema = Impl.getClangSema();

0 commit comments

Comments
 (0)