Skip to content

Commit c029ed6

Browse files
committed
[cxx-interop] try to workaround the linux libstdc++ move-only failure
1 parent 99e6d33 commit c029ed6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,6 +2193,10 @@ namespace {
21932193
Impl.ImportedDecls[{decl->getCanonicalDecl(), getVersion()}] = result;
21942194

21952195
if (recordHasMoveOnlySemantics(decl)) {
2196+
if (decl->isInStdNamespace() && decl->getName() == "promise") {
2197+
// Do not import std::promise.
2198+
return nullptr;
2199+
}
21962200
result->getAttrs().add(new (Impl.SwiftContext)
21972201
MoveOnlyAttr(/*Implicit=*/true));
21982202
}

0 commit comments

Comments
 (0)