mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use ValueDecl::isDynamic() instead of getAttrs().hasAttribute<DynamicAttr>()
This commit is contained in:
@@ -3790,8 +3790,7 @@ bool AbstractStorageDecl::requiresForeignGetterAndSetter() const {
|
||||
return true;
|
||||
// Otherwise, we only dispatch by @objc if the declaration is dynamic or
|
||||
// NSManaged.
|
||||
return getAttrs().hasAttribute<DynamicAttr>() ||
|
||||
getAttrs().hasAttribute<NSManagedAttr>();
|
||||
return isDynamic() || getAttrs().hasAttribute<NSManagedAttr>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user