Merge pull request #81184 from Azoy/no-more-is-array-type

[AST] Rename isArrayType and split the InlineArray portion
This commit is contained in:
Alejandro Alonso
2025-05-08 20:52:51 -07:00
committed by GitHub
13 changed files with 78 additions and 38 deletions

View File

@@ -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;
}