File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3640,10 +3640,6 @@ static Type buildAddressorResultType(TypeChecker &TC,
3640
3640
}
3641
3641
3642
3642
void TypeChecker::validateDecl (ValueDecl *D) {
3643
- // Generic parameters are validated as part of their context.
3644
- if (isa<GenericTypeParamDecl>(D))
3645
- return ;
3646
-
3647
3643
// Handling validation failure due to re-entrancy is left
3648
3644
// up to the caller, who must call hasValidSignature() to
3649
3645
// check that validateDecl() returned a fully-formed decl.
@@ -3681,6 +3677,10 @@ void TypeChecker::validateDecl(ValueDecl *D) {
3681
3677
return ;
3682
3678
}
3683
3679
3680
+ // Generic parameters are validated as part of their context.
3681
+ if (isa<GenericTypeParamDecl>(D))
3682
+ return ;
3683
+
3684
3684
// Validating the parent may have triggered validation of this declaration,
3685
3685
// so just return if that was the case.
3686
3686
if (D->hasValidationStarted ()) {
You can’t perform that action at this time.
0 commit comments