@@ -897,8 +897,8 @@ void AttributeChecker::visitSPIAccessControlAttr(SPIAccessControlAttr *attr) {
897
897
// implementation defines `set` if the protocol declares it.
898
898
if (auto protoStorage = dyn_cast<AbstractStorageDecl>(VD))
899
899
if (auto entryStorage = dyn_cast<AbstractStorageDecl>(entryDecl))
900
- if (protoStorage->getAccessor (AccessorKind::Set ) &&
901
- !entryStorage->getAccessor (AccessorKind::Set ))
900
+ if (protoStorage->supportsMutation ( ) &&
901
+ !entryStorage->supportsMutation ( ))
902
902
return false ;
903
903
904
904
return true ;
@@ -3655,7 +3655,7 @@ static AbstractFunctionDecl *findAbstractFunctionDecl(
3655
3655
// If the candidate is an `AbstractStorageDecl`, use its getter as the
3656
3656
// candidate.
3657
3657
if (auto *asd = dyn_cast<AbstractStorageDecl>(decl))
3658
- candidate = asd->getAccessor (AccessorKind::Get);
3658
+ candidate = asd->getOpaqueAccessor (AccessorKind::Get);
3659
3659
if (!candidate) {
3660
3660
notFunction = true ;
3661
3661
continue ;
@@ -4288,7 +4288,7 @@ IndexSubset *DifferentiableAttributeTypeCheckRequest::evaluate(
4288
4288
D->getAttrs ().removeAttribute (attr);
4289
4289
// Transfer `@differentiable` attribute from storage declaration to
4290
4290
// getter accessor.
4291
- auto *getterDecl = asd->getAccessor (AccessorKind::Get);
4291
+ auto *getterDecl = asd->getOpaqueAccessor (AccessorKind::Get);
4292
4292
auto *newAttr = DifferentiableAttr::create (
4293
4293
getterDecl, /* implicit*/ true , attr->AtLoc , attr->getRange (),
4294
4294
attr->isLinear (), resolvedDiffParamIndices,
0 commit comments