File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ class Verifier : public ASTWalker {
486
486
return true ;
487
487
}
488
488
bool shouldVerifyChecked (Stmt *S) { return true ; }
489
- bool shouldVerifyChecked (Pattern *S) { return S-> hasType () ; }
489
+ bool shouldVerifyChecked (Pattern *S) { return true ; }
490
490
bool shouldVerifyChecked (Decl *S) { return true ; }
491
491
492
492
// Only verify functions if they have bodies we can safely walk.
@@ -582,8 +582,14 @@ class Verifier : public ASTWalker {
582
582
return ;
583
583
}
584
584
}
585
+ void verifyChecked (Pattern *P) {
586
+ if (!P->hasType ()) {
587
+ Out << " pattern has no type\n " ;
588
+ P->dump (Out);
589
+ abort ();
590
+ }
591
+ }
585
592
void verifyChecked (Stmt *S) {}
586
- void verifyChecked (Pattern *P) { }
587
593
void verifyChecked (Decl *D) {}
588
594
589
595
void verifyChecked (Type type) {
You can’t perform that action at this time.
0 commit comments