We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb8c9d9 commit 25f21deCopy full SHA for 25f21de
lib/SILOptimizer/Utils/CastOptimizer.cpp
@@ -195,10 +195,6 @@ CastOptimizer::optimizeBridgedObjCToSwiftCast(SILDynamicCastInst dynamicCast) {
195
auto SubMap = SubstitutionMap::getProtocolSubstitutions(Conf.getRequirement(),
196
target, Conf);
197
198
- auto SILFnTy = FuncRef->getType();
199
- SILType SubstFnTy = SILFnTy.substGenericArgs(mod, SubMap);
200
- SILFunctionConventions substConv(SubstFnTy.castTo<SILFunctionType>(), mod);
201
-
202
// Temporary to hold the intermediate result.
203
AllocStackInst *Tmp = nullptr;
204
CanType OptionalTy;
0 commit comments