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 319b3e6 commit 860c869Copy full SHA for 860c869
lib/AST/ASTVerifier.cpp
@@ -2844,6 +2844,13 @@ class Verifier : public ASTWalker {
2844
abort();
2845
}
2846
2847
+ // [AST][AutoDiff] Skip implicit GenericTypeParamDecl AST verification. #32343
2848
+ // re-applied from https://github.com/apple/swift/pull/32343
2849
+ // Skip implicit generic param decls. Their depth and index may not be
2850
+ // consistent with the generic context's parameter list.
2851
+ if (GTPD->isImplicit())
2852
+ return;
2853
+
2854
unsigned currentDepth = DC->getGenericContextDepth();
2855
if (currentDepth < GTPD->getDepth()) {
2856
Out << "GenericTypeParamDecl has incorrect depth\n";
0 commit comments