mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Drop Some Superfluous Null Signature Guards
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user