@@ -6160,9 +6160,6 @@ RValue SILGenFunction::emitDynamicMemberRef(SILLocation loc, SILValue operand,
61606160 // Create the has-member block.
61616161 SILBasicBlock *hasMemberBB = createBasicBlock ();
61626162
6163- // The continuation block
6164- CanType memberMethodTy = refTy.getOptionalObjectType ();
6165-
61666163 const TypeLowering &optTL = getTypeLowering (refTy);
61676164 auto loweredOptTy = optTL.getLoweredType ();
61686165
@@ -6172,9 +6169,6 @@ RValue SILGenFunction::emitDynamicMemberRef(SILLocation loc, SILValue operand,
61726169 FuncDecl *memberFunc;
61736170 if (auto *VD = dyn_cast<VarDecl>(memberRef.getDecl ())) {
61746171 memberFunc = VD->getOpaqueAccessor (AccessorKind::Get);
6175- // FIXME: Verify ExtInfo state is correct, not working by accident.
6176- CanFunctionType::ExtInfo info;
6177- memberMethodTy = CanFunctionType::get ({}, memberMethodTy, info);
61786172 } else {
61796173 memberFunc = cast<FuncDecl>(memberRef.getDecl ());
61806174 }
@@ -6210,7 +6204,7 @@ RValue SILGenFunction::emitDynamicMemberRef(SILLocation loc, SILValue operand,
62106204 // FIXME: Verify ExtInfo state is correct, not working by accident.
62116205 CanFunctionType::ExtInfo info;
62126206 FunctionType::Param arg (operand->getType ().getASTType ());
6213- auto memberFnTy = CanFunctionType::get ({arg}, memberMethodTy , info);
6207+ auto memberFnTy = CanFunctionType::get ({arg}, methodTy , info);
62146208
62156209 auto loweredMethodTy = getDynamicMethodLoweredType (SGM.M , member,
62166210 memberFnTy);
0 commit comments