Skip to content

Commit 4ac4d42

Browse files
committed
[ConstraintSystem] Another small simplification.
1 parent b900b5d commit 4ac4d42

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,12 +2022,10 @@ Type ConstraintSystem::simplifyType(Type type) {
20222022
return simplifyTypeImpl(
20232023
*this, type,
20242024
[&](TypeVariableType *tvt) -> Type {
2025-
tvt = getRepresentative(tvt);
2026-
if (auto fixed = getFixedType(tvt)) {
2025+
if (auto fixed = getFixedType(tvt))
20272026
return simplifyType(fixed);
2028-
}
20292027

2030-
return tvt;
2028+
return getRepresentative(tvt);
20312029
});
20322030
}
20332031

0 commit comments

Comments
 (0)