Skip to content

Commit cb3fe3d

Browse files
committed
Adjust for 5.5 branch
1 parent 59158a1 commit cb3fe3d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

include/swift/AST/ASTMangler.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ class ASTMangler : public Mangler {
297297
getClangDeclForMangling(const ValueDecl *decl);
298298

299299
void appendExistentialLayout(
300-
const ExistentialLayout &layout, GenericSignature sig,
301-
const ValueDecl *forDecl);
300+
const ExistentialLayout &layout, const ValueDecl *forDecl);
302301

303302
protected:
304303

lib/AST/ASTMangler.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,7 @@ void ASTMangler::appendOpaqueDeclName(const OpaqueTypeDecl *opaqueDecl) {
10151015
}
10161016

10171017
void ASTMangler::appendExistentialLayout(
1018-
const ExistentialLayout &layout, GenericSignature sig,
1019-
const ValueDecl *forDecl) {
1018+
const ExistentialLayout &layout, const ValueDecl *forDecl) {
10201019
bool First = true;
10211020
bool DroppedRequiresClass = false;
10221021
bool SawRequiresClass = false;
@@ -1040,7 +1039,7 @@ void ASTMangler::appendExistentialLayout(
10401039
appendOperator("y");
10411040

10421041
if (auto superclass = layout.explicitSuperclass) {
1043-
appendType(superclass, sig, forDecl);
1042+
appendType(superclass, forDecl);
10441043
return appendOperator("Xc");
10451044
} else if (layout.hasExplicitAnyObject ||
10461045
(DroppedRequiresClass && !SawRequiresClass)) {
@@ -1219,14 +1218,14 @@ void ASTMangler::appendType(Type type, const ValueDecl *forDecl) {
12191218

12201219
case TypeKind::Protocol: {
12211220
return appendExistentialLayout(
1222-
ExistentialLayout(cast<ProtocolType>(tybase)), sig, forDecl);
1221+
ExistentialLayout(cast<ProtocolType>(tybase)), forDecl);
12231222
}
12241223

12251224
case TypeKind::ProtocolComposition: {
12261225
// We mangle ProtocolType and ProtocolCompositionType using the
12271226
// same production:
12281227
auto layout = type->getExistentialLayout();
1229-
return appendExistentialLayout(layout, sig, forDecl);
1228+
return appendExistentialLayout(layout, forDecl);
12301229
}
12311230

12321231
case TypeKind::UnboundGeneric:

0 commit comments

Comments
 (0)