We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0696ec6 commit 144b9faCopy full SHA for 144b9fa
lib/AST/ASTContext.cpp
@@ -2714,6 +2714,9 @@ ProtocolConformance *
2714
ASTContext::getSpecializedConformance(Type type,
2715
NormalProtocolConformance *generic,
2716
SubstitutionMap substitutions) {
2717
+ CONDITIONAL_ASSERT(substitutions.getGenericSignature().getCanonicalSignature()
2718
+ == generic->getGenericSignature().getCanonicalSignature());
2719
+
2720
// If the specialization is a no-op, use the root conformance instead.
2721
if (collapseSpecializedConformance(type, generic, substitutions)) {
2722
++NumCollapsedSpecializedProtocolConformances;
0 commit comments