Restore CanType-based micro-optimizations.

This reverts commit 5036806e5a.
However, it preserves a pair of changes to the SIL optimizer
relating to walking through optional types.
This commit is contained in:
John McCall
2017-03-14 11:30:06 -04:00
parent f3bfc777be
commit 897f5ab7c5
15 changed files with 144 additions and 88 deletions

View File

@@ -4158,7 +4158,7 @@ public:
exType = exMetatype.getInstanceType();
concreteType = cast<MetatypeType>(concreteType).getInstanceType();
}
assert(exType->isExistentialType());
assert(exType.isExistentialType());
return concreteType;
}