Skip to content

Commit 2986e81

Browse files
committed
Add a note about deliberate use of the Swift 3 mangling.
1 parent 23bc322 commit 2986e81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6049,6 +6049,9 @@ void TypeChecker::checkConformancesInContext(DeclContext *dc,
60496049
auto insertionLoc =
60506050
classDecl->getAttributeInsertionLoc(/*forModifier=*/false);
60516051
if (isFixable) {
6052+
// Note: this is intentionally using the Swift 3 mangling,
6053+
// to provide compatibility with archives created in the Swift 3
6054+
// time frame.
60526055
Mangle::ASTMangler mangler;
60536056
diagnose(classDecl, diag::unstable_mangled_name_add_objc)
60546057
.fixItInsert(insertionLoc,

0 commit comments

Comments
 (0)