mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cast-opt] Delete dead code.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user