[cast-opt] Delete dead code.

This commit is contained in:
Michael Gottesman
2019-03-05 00:16:19 -08:00
parent eb8c9d9bf0
commit 25f21de8dd

View File

@@ -195,10 +195,6 @@ CastOptimizer::optimizeBridgedObjCToSwiftCast(SILDynamicCastInst dynamicCast) {
auto SubMap = SubstitutionMap::getProtocolSubstitutions(Conf.getRequirement(),
target, Conf);
auto SILFnTy = FuncRef->getType();
SILType SubstFnTy = SILFnTy.substGenericArgs(mod, SubMap);
SILFunctionConventions substConv(SubstFnTy.castTo<SILFunctionType>(), mod);
// Temporary to hold the intermediate result.
AllocStackInst *Tmp = nullptr;
CanType OptionalTy;