File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -1171,20 +1171,7 @@ AnyFunctionRef::getYieldResultsImpl(SmallVectorImpl<AnyFunctionType::Yield> &buf
11711171 bool mapIntoContext) const {
11721172 assert (buffer.empty ());
11731173 if (auto *AFD = getAbstractFunctionDecl ()) {
1174- // FIXME: AccessorDecl case is not necessary
1175- if (auto *AD = dyn_cast<AccessorDecl>(AFD)) {
1176- if (AD->isCoroutine ()) {
1177- auto valueTy = AD->getStorage ()->getValueInterfaceType ()
1178- ->getReferenceStorageReferent ();
1179- if (mapIntoContext)
1180- valueTy = AFD->mapTypeIntoContext (valueTy);
1181- YieldTypeFlags flags (isYieldingMutableAccessor (AD->getAccessorKind ())
1182- ? ParamSpecifier::InOut
1183- : ParamSpecifier::LegacyShared);
1184- buffer.push_back (AnyFunctionType::Yield (valueTy, flags));
1185- return buffer;
1186- }
1187- } else if (AFD->isCoroutine ()) {
1174+ if (AFD->isCoroutine ()) {
11881175 auto fnType = AFD->getInterfaceType ();
11891176 if (fnType->hasError ())
11901177 return {};
You can’t perform that action at this time.
0 commit comments