Skip to content

Commit 81027cf

Browse files
committed
SIL: Drop conformances to Copyable and Escapable from substitution signature
1 parent bca5aa7 commit 81027cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/SIL/IR/AbstractionPattern.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2404,6 +2404,12 @@ class SubstFunctionTypePatternVisitor
24042404
LookUpConformanceInModule(moduleDecl));
24052405

24062406
for (auto reqt : nomGenericSig.getRequirements()) {
2407+
// Skip conformance requirements to Copyable and Escapable.
2408+
if (reqt.getKind() == RequirementKind::Conformance &&
2409+
reqt.getProtocolDecl()->getInvertibleProtocolKind()) {
2410+
continue;
2411+
}
2412+
24072413
substRequirements.push_back(reqt.subst(newSubMap));
24082414
}
24092415

0 commit comments

Comments
 (0)