Skip to content

Commit dcf87a2

Browse files
committed
[interop][SwiftToCxx] prohibit printing of generic structs for now
1 parent 94f6496 commit dcf87a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/PrintAsClang/PrintClangValueType.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ printCValueTypeStorageStruct(raw_ostream &os, const NominalTypeDecl *typeDecl,
8383
void ClangValueTypePrinter::printValueTypeDecl(
8484
const NominalTypeDecl *typeDecl,
8585
llvm::function_ref<void(void)> bodyPrinter) {
86+
// FIXME: Add support for generic structs.
87+
if (typeDecl->isGeneric())
88+
return;
8689
llvm::Optional<IRABIDetailsProvider::SizeAndAlignment> typeSizeAlign;
8790
if (!typeDecl->isResilient()) {
8891

0 commit comments

Comments
 (0)