mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #81184 from Azoy/no-more-is-array-type
[AST] Rename isArrayType and split the InlineArray portion
This commit is contained in:
@@ -6906,7 +6906,7 @@ bool ExprRewriter::peepholeCollectionUpcast(Expr *expr, Type toType,
|
||||
|
||||
// Array literals.
|
||||
if (auto arrayLiteral = dyn_cast<ArrayExpr>(expr)) {
|
||||
if (Type elementType = toType->isArrayType()) {
|
||||
if (auto elementType = toType->getArrayElementType()) {
|
||||
peepholeArrayUpcast(arrayLiteral, toType, bridged, elementType, locator);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user