Make _InlineArray subject to the same optimizations as InlineArray

This commit is contained in:
Tim Kientzle
2025-10-10 14:06:14 -07:00
parent b69d5fe40c
commit 4c0b58096e
8 changed files with 9 additions and 7 deletions

View File

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