Skip to content

Commit f1d564d

Browse files
authored
Merge pull request #85123 from hnrklssn/swiftify-obj-c2
[ClangImporter] Attach _SwiftifyImportProtocol to imported protocols with bounds attributes
2 parents 7688987 + 959d6a6 commit f1d564d

File tree

9 files changed

+627
-89
lines changed

9 files changed

+627
-89
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5847,6 +5847,8 @@ namespace {
58475847

58485848
result->setMemberLoader(&Impl, 0);
58495849

5850+
Impl.swiftifyProtocol(result);
5851+
58505852
return result;
58515853
}
58525854

lib/ClangImporter/ImporterImpl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,7 @@ class LLVM_LIBRARY_VISIBILITY ClangImporter::Implementation
18281828
void addOptionSetTypealiases(NominalTypeDecl *nominal);
18291829

18301830
void swiftify(AbstractFunctionDecl *MappedDecl);
1831+
void swiftifyProtocol(NominalTypeDecl *MappedDecl);
18311832

18321833
/// Find the lookup table that corresponds to the given Clang module.
18331834
///

0 commit comments

Comments
 (0)