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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user