[NFC] Remove more uses of <InOutType>

This commit is contained in:
Robert Widmann
2017-10-22 01:55:44 -04:00
parent 706c08c218
commit ebdd126a2c
6 changed files with 17 additions and 25 deletions

View File

@@ -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);