We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b900b5d commit 4ac4d42Copy full SHA for 4ac4d42
lib/Sema/ConstraintSystem.cpp
@@ -2022,12 +2022,10 @@ Type ConstraintSystem::simplifyType(Type type) {
2022
return simplifyTypeImpl(
2023
*this, type,
2024
[&](TypeVariableType *tvt) -> Type {
2025
- tvt = getRepresentative(tvt);
2026
- if (auto fixed = getFixedType(tvt)) {
+ if (auto fixed = getFixedType(tvt))
2027
return simplifyType(fixed);
2028
- }
2029
2030
- return tvt;
+ return getRepresentative(tvt);
2031
});
2032
}
2033
0 commit comments