Skip to content

Commit 0d727d0

Browse files
[NFC] Replace new getAccessor calls with getOpaqueAccessor calls.
It is fine if we synthesize the accessors a bit more than usual as PrintAsObjC isn't performance-sensitive and IRGen needs the accessors anyways.
1 parent 3b9dbd5 commit 0d727d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/Decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4930,7 +4930,7 @@ getNameFromObjcAttribute(const ObjCAttr *attr, DeclName preferredName) {
49304930
ObjCSelector
49314931
AbstractStorageDecl::getObjCGetterSelector(Identifier preferredName) const {
49324932
// If the getter has an @objc attribute with a name, use that.
4933-
if (auto getter = getAccessor(AccessorKind::Get)) {
4933+
if (auto getter = getOpaqueAccessor(AccessorKind::Get)) {
49344934
if (auto name = getNameFromObjcAttribute(getter->getAttrs().
49354935
getAttribute<ObjCAttr>(), preferredName))
49364936
return *name;
@@ -4960,7 +4960,7 @@ AbstractStorageDecl::getObjCGetterSelector(Identifier preferredName) const {
49604960
ObjCSelector
49614961
AbstractStorageDecl::getObjCSetterSelector(Identifier preferredName) const {
49624962
// If the setter has an @objc attribute with a name, use that.
4963-
auto setter = getAccessor(AccessorKind::Set);
4963+
auto setter = getOpaqueAccessor(AccessorKind::Set);
49644964
auto objcAttr = setter ? setter->getAttrs().getAttribute<ObjCAttr>()
49654965
: nullptr;
49664966
if (auto name = getNameFromObjcAttribute(objcAttr, DeclName(preferredName))) {

0 commit comments

Comments
 (0)