mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Petty optimization that I noticed while doing significant
work in this file that turned out to be unnecessary. Swift SVN r15573
This commit is contained in:
@@ -2130,8 +2130,7 @@ SILGenModule::emitProtocolWitness(ProtocolConformance *conformance,
|
||||
|
||||
// Work out the interface type for the witness.
|
||||
auto reqtIfaceTy
|
||||
= cast<GenericFunctionType>(Types.getConstantInfo(requirement)
|
||||
.FormalInterfaceType);
|
||||
= cast<GenericFunctionType>(requirementInfo.FormalInterfaceType);
|
||||
// Substitute the 'self' type into the requirement to get the concrete witness
|
||||
// type, leaving the other generic parameters open.
|
||||
CanAnyFunctionType witnessSubstIfaceTy = cast<AnyFunctionType>(
|
||||
|
||||
Reference in New Issue
Block a user