Merge pull request #61342 from apple/eng/fwd-decl-no-bridge

[interop][SwiftToCxx] forward declare - do not use bridged types in C…
This commit is contained in:
Alex Lorenz
2022-09-28 21:57:59 -07:00
committed by GitHub

View File

@@ -374,7 +374,8 @@ public:
return;
// Bridge, if necessary.
TD = printer.getObjCTypeDecl(TD);
if (outputLangMode != OutputLanguageMode::Cxx)
TD = printer.getObjCTypeDecl(TD);
if (finder.needsDefinition() && isa<NominalTypeDecl>(TD)) {
// We can delay individual members of classes; do so if necessary.