mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Remove more uses of <InOutType>
This commit is contained in:
@@ -4444,11 +4444,8 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
|
||||
// T <p U ===> T[] <a UnsafeMutablePointer<U>
|
||||
case ConversionRestrictionKind::ArrayToPointer: {
|
||||
addContextualScore();
|
||||
auto obj1 = type1;
|
||||
// Unwrap an inout type.
|
||||
if (auto inout1 = obj1->getAs<InOutType>()) {
|
||||
obj1 = inout1->getObjectType();
|
||||
}
|
||||
auto obj1 = type1->getInOutObjectType();
|
||||
|
||||
obj1 = getFixedTypeRecursive(obj1, false, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user