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

@@ -3976,7 +3976,7 @@ namespace {
Type arrayTy = cs.getType(expr);
Type elementType;
if (arrayTy->isInlineArray()) {
if (arrayTy->isInlineArray() || arrayTy->is_InlineArray()) {
// <let count: Int, Element>
elementType = arrayTy->castTo<BoundGenericStructType>()->getGenericArgs()[1];
} else {