mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Make _InlineArray subject to the same optimizations as InlineArray
This commit is contained in:
@@ -8986,7 +8986,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyConformsToConstraint(
|
||||
// parameter, then check if the counts are equal and solve.
|
||||
if (kind == ConstraintKind::LiteralConformsTo &&
|
||||
protocol == arrayLiteralProto &&
|
||||
type->isInlineArray() &&
|
||||
(type->isInlineArray() || type->is_InlineArray()) &&
|
||||
arrayLiteral) {
|
||||
auto iaTy = type->castTo<BoundGenericStructType>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user