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:
John McCall
2014-03-28 05:39:24 +00:00
parent 2c0b89ceea
commit 71381ccdca

View File

@@ -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>(