Skip to content

Commit cb2bd32

Browse files
committed
[cxx-interop] Do not import std::__compressed_pair
This type is triggering modularization issues in libc++: ``` error: definition of '__builtin_new_deleter' must be imported from module 'std_private_memory_builtin_new_allocator' before it is required ``` This is a workaround to keep things building. rdar://142576799
1 parent 610d07e commit cb2bd32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,6 +2767,7 @@ namespace {
27672767
decl->getDeclContext()->getParent()->isStdNamespace() &&
27682768
decl->getIdentifier() &&
27692769
(decl->getName() == "tzdb" || decl->getName() == "time_zone_link" ||
2770+
decl->getName() == "__compressed_pair" ||
27702771
decl->getName() == "time_zone"))
27712772
return nullptr;
27722773

0 commit comments

Comments
 (0)