mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Another small simplification.
This commit is contained in:
@@ -2022,12 +2022,10 @@ Type ConstraintSystem::simplifyType(Type type) {
|
||||
return simplifyTypeImpl(
|
||||
*this, type,
|
||||
[&](TypeVariableType *tvt) -> Type {
|
||||
tvt = getRepresentative(tvt);
|
||||
if (auto fixed = getFixedType(tvt)) {
|
||||
if (auto fixed = getFixedType(tvt))
|
||||
return simplifyType(fixed);
|
||||
}
|
||||
|
||||
return tvt;
|
||||
return getRepresentative(tvt);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user