File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3551,9 +3551,10 @@ void TypeAliasDecl::computeType() {
3551
3551
}
3552
3552
3553
3553
Type TypeAliasDecl::getUnderlyingType () const {
3554
- return evaluateOrDefault (getASTContext ().evaluator ,
3554
+ auto &ctx = getASTContext ();
3555
+ return evaluateOrDefault (ctx.evaluator ,
3555
3556
UnderlyingTypeRequest{const_cast <TypeAliasDecl *>(this )},
3556
- Type ( ));
3557
+ ErrorType::get (ctx ));
3557
3558
}
3558
3559
3559
3560
void TypeAliasDecl::setUnderlyingType (Type underlying) {
@@ -3583,10 +3584,11 @@ UnboundGenericType *TypeAliasDecl::getUnboundGenericType() const {
3583
3584
}
3584
3585
3585
3586
Type TypeAliasDecl::getStructuralType () const {
3586
- auto &context = getASTContext ();
3587
+ auto &ctx = getASTContext ();
3587
3588
return evaluateOrDefault (
3588
- context.evaluator ,
3589
- StructuralTypeRequest{const_cast <TypeAliasDecl *>(this )}, Type ());
3589
+ ctx.evaluator ,
3590
+ StructuralTypeRequest{const_cast <TypeAliasDecl *>(this )},
3591
+ ErrorType::get (ctx));
3590
3592
}
3591
3593
3592
3594
Type AbstractTypeParamDecl::getSuperclass () const {
You can’t perform that action at this time.
0 commit comments