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

@@ -2208,7 +2208,7 @@ namespace {
if (contextualType->isArray())
eltType = contextualType->getArrayElementType();
if (contextualType->isInlineArray())
if (contextualType->isInlineArray() || contextualType->is_InlineArray())
eltType = contextualType->getInlineArrayElementType();
CS.addConstraint(ConstraintKind::LiteralConformsTo, contextualType,