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

@@ -219,7 +219,7 @@ TreatArrayLiteralAsDictionary *
TreatArrayLiteralAsDictionary::attempt(ConstraintSystem &cs, Type dictionaryTy,
Type arrayTy,
ConstraintLocator *locator) {
if (!arrayTy->isArrayType())
if (!arrayTy->isArray())
return nullptr;
// Determine the ArrayExpr from the locator.
@@ -1834,7 +1834,7 @@ ExpandArrayIntoVarargs::attempt(ConstraintSystem &cs, Type argType,
if (!(argLoc && argLoc->getParameterFlags().isVariadic()))
return nullptr;
auto elementType = argType->isArrayType();
auto elementType = argType->getArrayElementType();
if (!elementType)
return nullptr;