mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make _InlineArray subject to the same optimizations as InlineArray
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user