Skip to content

Commit 8241016

Browse files
committed
AST: Add missing fastpath to transformRec()'s handling of SILBoxType
1 parent 09ece3b commit 8241016

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/Type.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4683,6 +4683,8 @@ case TypeKind::Id:
46834683
changed |= fieldTy != transformed;
46844684
newFields.push_back(SILField(transformed, f.isMutable()));
46854685
}
4686+
if (!changed)
4687+
return *this;
46864688
boxTy = SILBoxType::get(Ptr->getASTContext(),
46874689
SILLayout::get(Ptr->getASTContext(),
46884690
l->getGenericSignature(), newFields),

0 commit comments

Comments
 (0)