@@ -2782,9 +2782,6 @@ bool LoadableByAddress::recreateConvInstr(SILInstruction &I,
27822782 IRGenModule *currIRMod =
27832783 getIRGenModule ()->IRGen .getGenModule (convInstr->getFunction ());
27842784 SILType currSILType = convInstr->getType ();
2785- if (auto *thinToPointer = dyn_cast<ThinFunctionToPointerInst>(convInstr)) {
2786- currSILType = thinToPointer->getOperand ()->getType ();
2787- }
27882785 auto currSILFunctionType = currSILType.castTo <SILFunctionType>();
27892786 GenericEnvironment *genEnv =
27902787 getSubstGenericEnvironment (convInstr->getFunction ());
@@ -2813,14 +2810,6 @@ bool LoadableByAddress::recreateConvInstr(SILInstruction &I,
28132810 instr->getLoc (), instr->getOperand (), newType);
28142811 break ;
28152812 }
2816- case SILInstructionKind::ThinFunctionToPointerInst: {
2817- auto instr = cast<ThinFunctionToPointerInst>(convInstr);
2818- newType =
2819- MapperCache.getNewSILType (genEnv, instr->getType (), *getIRGenModule ());
2820- newInstr = convBuilder.createThinFunctionToPointer (
2821- instr->getLoc (), instr->getOperand (), newType);
2822- break ;
2823- }
28242813 case SILInstructionKind::ConvertFunctionInst: {
28252814 auto instr = cast<ConvertFunctionInst>(convInstr);
28262815 newInstr = convBuilder.createConvertFunction (
@@ -2956,7 +2945,6 @@ void LoadableByAddress::run() {
29562945 case SILInstructionKind::ConvertFunctionInst:
29572946 case SILInstructionKind::ConvertEscapeToNoEscapeInst:
29582947 case SILInstructionKind::MarkDependenceInst:
2959- case SILInstructionKind::ThinFunctionToPointerInst:
29602948 case SILInstructionKind::ThinToThickFunctionInst:
29612949 case SILInstructionKind::DifferentiableFunctionInst:
29622950 case SILInstructionKind::LinearFunctionInst:
0 commit comments