the swift.Slice type got removed a long time ago, being replaced with

what is now Swift.Array.  Update various internal stuff to refer to
Array instead of Slice.  NFC.


Swift SVN r14567
This commit is contained in:
Chris Lattner
2014-03-02 06:21:37 +00:00
parent aa337d4899
commit 11bedff2f3
14 changed files with 37 additions and 37 deletions

View File

@@ -104,7 +104,7 @@ void ConstraintSystem::assignFixedType(TypeVariableType *typeVar, Type type,
if (literalProtocol) {
if (auto defaultType = TC.getDefaultType(literalProtocol, DC)) {
// Check whether the nominal types match. This makes sure that we
// properly handle Slice vs. Slice<T>.
// properly handle Array vs. Array<T>.
if (defaultType->getAnyNominal() != type->getAnyNominal())
increaseScore(SK_NonDefaultLiteral);
}
@@ -587,7 +587,7 @@ Type ConstraintSystem::openType(
Type ConstraintSystem::openBindingType(Type type, DeclContext *dc) {
Type result = openType(type, dc);
// FIXME: Better way to identify Slice<T>.
// FIXME: Better way to identify Array<T>.
if (auto boundStruct
= dyn_cast<BoundGenericStructType>(result.getPointer())) {
if (!boundStruct->getParent() &&