Skip to content

Commit 5498c5d

Browse files
authored
[Swiftify] Skip swiftify during symbolic import (#81349)
Swiftify cannot work in this mode. This mode has been removed entirely in main. This takes a smaller change into the release to minimise risk. rdar://149953125
1 parent 1459eca commit 5498c5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ClangImporter/ImportDecl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -9097,6 +9097,8 @@ class SwiftifyInfoPrinter {
90979097
void ClangImporter::Implementation::swiftify(FuncDecl *MappedDecl) {
90989098
if (!SwiftContext.LangOpts.hasFeature(Feature::SafeInteropWrappers))
90999099
return;
9100+
if (importSymbolicCXXDecls)
9101+
return;
91009102
auto ClangDecl =
91019103
dyn_cast_or_null<clang::FunctionDecl>(MappedDecl->getClangDecl());
91029104
if (!ClangDecl)

0 commit comments

Comments
 (0)