mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -4158,7 +4158,7 @@ public:
|
||||
exType = exMetatype.getInstanceType();
|
||||
concreteType = cast<MetatypeType>(concreteType).getInstanceType();
|
||||
}
|
||||
assert(exType->isExistentialType());
|
||||
assert(exType.isExistentialType());
|
||||
return concreteType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user