[NFC] Drop Some Superfluous Null Signature Guards

This commit is contained in:
Robert Widmann
2021-07-14 23:24:47 -07:00
parent d86551de67
commit 1491eb0ca3
11 changed files with 24 additions and 56 deletions

View File

@@ -9048,13 +9048,11 @@ ConstraintSystem::simplifyOpaqueUnderlyingTypeConstraint(Type type1, Type type2,
replacements);
assert(underlyingTyVar);
if (auto dcSig = DC->getGenericSignatureOfContext()) {
for (auto param : dcSig.getGenericParams()) {
addConstraint(ConstraintKind::Bind,
openType(param, replacements),
DC->mapTypeIntoContext(param),
locator);
}
for (auto param : DC->getGenericSignatureOfContext().getGenericParams()) {
addConstraint(ConstraintKind::Bind,
openType(param, replacements),
DC->mapTypeIntoContext(param),
locator);
}
addConstraint(ConstraintKind::Equal, type1, underlyingTyVar, locator);