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:
@@ -720,7 +720,7 @@ namespace {
|
||||
return false;
|
||||
|
||||
// If the declaration is dynamic, there's no materializeForSet.
|
||||
if (decl->getAttrs().hasAttribute<DynamicAttr>())
|
||||
if (decl->isDynamic())
|
||||
return false;
|
||||
|
||||
// If the declaration was imported from C, we won't gain anything
|
||||
|
||||
Reference in New Issue
Block a user