File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -3639,17 +3639,7 @@ class Verifier : public ASTWalker {
3639
3639
void checkErrors (Stmt *S) {}
3640
3640
void checkErrors (Pattern *P) {}
3641
3641
void checkErrors (Decl *D) {}
3642
- void checkErrors (ValueDecl *D) {
3643
- PrettyStackTraceDecl debugStack (" verifying errors" , D);
3644
-
3645
- if (!D->hasInterfaceType ())
3646
- return ;
3647
- if (D->getInterfaceType ()->hasError () && !D->isInvalid ()) {
3648
- Out << " Valid decl has error type!\n " ;
3649
- D->dump (Out);
3650
- abort ();
3651
- }
3652
- }
3642
+ void checkErrors (ValueDecl *D) {}
3653
3643
};
3654
3644
} // end anonymous namespace
3655
3645
Original file line number Diff line number Diff line change @@ -2885,12 +2885,10 @@ bool ValueDecl::isRecursiveValidation() const {
2885
2885
Type ValueDecl::getInterfaceType () const {
2886
2886
auto &ctx = getASTContext ();
2887
2887
2888
- // Our clients that don't register the lazy resolver are relying on the
2889
- // fact that they can't pull an interface type out to avoid doing work.
2890
- // This is a necessary evil until we can wean them off.
2891
- if (!ctx.getLazyResolver ()) {
2892
- return TypeAndAccess.getPointer ();
2893
- }
2888
+ // N.B. This assertion exists to catch new broken callers. It can be removed
2889
+ // with the LazyResolver when the time comes.
2890
+ assert (ctx.getLazyResolver ()
2891
+ && " The lazy resolver must be registered to make semantic queries!" );
2894
2892
2895
2893
if (auto type =
2896
2894
evaluateOrDefault (ctx.evaluator ,
You can’t perform that action at this time.
0 commit comments