@@ -813,22 +813,13 @@ ArgumentDecoderInfo DistributedAccessor::findArgumentDecoder(
813
813
decoder = instance.claimNext ();
814
814
}
815
815
816
- // TODO(distributed): this can be removed most likely now
817
- if (isa<StructDecl>(decoderDecl) || isa<EnumDecl>(decoderDecl) ||
818
- decoderDecl->isFinal ()) {
819
- auto *decodeSIL = IGM.getSILModule ().lookUpFunction (SILDeclRef (decodeFn));
820
- auto *fnPtr = IGM.getAddrOfSILFunction (decodeSIL, NotForDefinition,
821
- /* isDynamicallyReplacible=*/ false );
822
-
823
- auto methodPtr = FunctionPointer::forDirect (
824
- classifyFunctionPointerKind (decodeSIL), fnPtr,
825
- /* secondaryValue=*/ nullptr , signature);
826
-
827
- return {decoder, decoderTy, witnessTable, methodPtr, methodTy};
828
- }
816
+ auto *decodeSIL = IGM.getSILModule ().lookUpFunction (SILDeclRef (decodeFn));
817
+ auto *fnPtr = IGM.getAddrOfSILFunction (decodeSIL, NotForDefinition,
818
+ /* isDynamicallyReplacible=*/ false );
829
819
830
- auto methodPtr =
831
- emitVirtualMethodValue (IGF, decoderTy, SILDeclRef (decodeFn), methodTy);
820
+ auto methodPtr = FunctionPointer::forDirect (
821
+ classifyFunctionPointerKind (decodeSIL), fnPtr,
822
+ /* secondaryValue=*/ nullptr , signature);
832
823
833
824
return {decoder, decoderTy, witnessTable, methodPtr, methodTy};
834
825
}
0 commit comments