Skip to content

Commit 25f21de

Browse files
committed
[cast-opt] Delete dead code.
1 parent eb8c9d9 commit 25f21de

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/SILOptimizer/Utils/CastOptimizer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,6 @@ CastOptimizer::optimizeBridgedObjCToSwiftCast(SILDynamicCastInst dynamicCast) {
195195
auto SubMap = SubstitutionMap::getProtocolSubstitutions(Conf.getRequirement(),
196196
target, Conf);
197197

198-
auto SILFnTy = FuncRef->getType();
199-
SILType SubstFnTy = SILFnTy.substGenericArgs(mod, SubMap);
200-
SILFunctionConventions substConv(SubstFnTy.castTo<SILFunctionType>(), mod);
201-
202198
// Temporary to hold the intermediate result.
203199
AllocStackInst *Tmp = nullptr;
204200
CanType OptionalTy;

0 commit comments

Comments
 (0)