Skip to content

Commit 62eda2c

Browse files
committed
Update ASTMangler.cpp
1 parent 0574c9d commit 62eda2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/AST/ASTMangler.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,11 +1619,13 @@ void ASTMangler::appendType(Type type, GenericSignature sig,
16191619
appendSymbolicExtendedExistentialType(referent, EMT, sig, forDecl);
16201620
return;
16211621
}
1622+
}
16221623

1624+
if (EMT->getInstanceType()->isExistentialType() &&
1625+
EMT->getExistentialLayout().needsExtendedShape(AllowInverses))
16231626
appendConstrainedExistential(EMT->getInstanceType(), sig, forDecl);
1624-
} else {
1627+
else
16251628
appendType(EMT->getInstanceType(), sig, forDecl);
1626-
}
16271629

16281630
if (EMT->hasRepresentation()) {
16291631
appendOperator("Xm",

0 commit comments

Comments
 (0)