File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -991,13 +991,8 @@ void ConstraintSystem::shrink(Expr *expr) {
991
991
auto typeRepr = castTypeLoc.getTypeRepr ();
992
992
993
993
if (typeRepr && isSuitableCollection (typeRepr)) {
994
- // Clone representative to avoid modifying in-place,
995
- // FIXME: We should try and silently resolve the type here,
996
- // instead of cloning representative.
997
- auto coercionRepr = typeRepr->clone (CS.getASTContext ());
998
- // Let's try to resolve coercion type from cloned representative.
999
994
auto resolution = TypeResolution::forContextual (CS.DC , None);
1000
- auto coercionType = resolution.resolveType (coercionRepr );
995
+ auto coercionType = resolution.resolveType (typeRepr );
1001
996
1002
997
// Looks like coercion type is invalid, let's skip this sub-tree.
1003
998
if (coercionType->hasError ())
You can’t perform that action at this time.
0 commit comments