File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3624,7 +3624,10 @@ UnboundGenericType *TypeAliasDecl::getUnboundGenericType() const {
3624
3624
3625
3625
Type TypeAliasDecl::getStructuralType () const {
3626
3626
assert (!getGenericParams ());
3627
-
3627
+
3628
+ if (auto resolved = this ->getUnderlyingTypeLoc ().getType ())
3629
+ return resolved;
3630
+
3628
3631
auto &context = getASTContext ();
3629
3632
return evaluateOrDefault (context.evaluator ,
3630
3633
StructuralTypeRequest { const_cast <TypeAliasDecl *>(this ) },
Original file line number Diff line number Diff line change @@ -3785,9 +3785,6 @@ PotentialArchetype *GenericSignatureBuilder::realizePotentialArchetype(
3785
3785
3786
3786
static Type getStructuralType (TypeDecl *typeDecl) {
3787
3787
if (auto typealias = dyn_cast<TypeAliasDecl>(typeDecl)) {
3788
- if (auto resolved = typealias->getUnderlyingTypeLoc ().getType ())
3789
- return resolved;
3790
-
3791
3788
return typealias->getStructuralType ();
3792
3789
}
3793
3790
You can’t perform that action at this time.
0 commit comments