@@ -6160,9 +6160,6 @@ RValue SILGenFunction::emitDynamicMemberRef(SILLocation loc, SILValue operand,
6160
6160
// Create the has-member block.
6161
6161
SILBasicBlock *hasMemberBB = createBasicBlock ();
6162
6162
6163
- // The continuation block
6164
- CanType memberMethodTy = refTy.getOptionalObjectType ();
6165
-
6166
6163
const TypeLowering &optTL = getTypeLowering (refTy);
6167
6164
auto loweredOptTy = optTL.getLoweredType ();
6168
6165
@@ -6172,9 +6169,6 @@ RValue SILGenFunction::emitDynamicMemberRef(SILLocation loc, SILValue operand,
6172
6169
FuncDecl *memberFunc;
6173
6170
if (auto *VD = dyn_cast<VarDecl>(memberRef.getDecl ())) {
6174
6171
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);
6178
6172
} else {
6179
6173
memberFunc = cast<FuncDecl>(memberRef.getDecl ());
6180
6174
}
@@ -6210,7 +6204,7 @@ RValue SILGenFunction::emitDynamicMemberRef(SILLocation loc, SILValue operand,
6210
6204
// FIXME: Verify ExtInfo state is correct, not working by accident.
6211
6205
CanFunctionType::ExtInfo info;
6212
6206
FunctionType::Param arg (operand->getType ().getASTType ());
6213
- auto memberFnTy = CanFunctionType::get ({arg}, memberMethodTy , info);
6207
+ auto memberFnTy = CanFunctionType::get ({arg}, methodTy , info);
6214
6208
6215
6209
auto loweredMethodTy = getDynamicMethodLoweredType (SGM.M , member,
6216
6210
memberFnTy);
0 commit comments