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:
@@ -3164,7 +3164,7 @@ getWitnessDispatchKind(Type selfType, SILDeclRef witness, bool isFree) {
|
||||
auto *decl = witness.getDecl();
|
||||
|
||||
// If the witness is dynamic, go through dynamic dispatch.
|
||||
if (decl->getAttrs().hasAttribute<DynamicAttr>())
|
||||
if (decl->isDynamic())
|
||||
return WitnessDispatchKind::Dynamic;
|
||||
|
||||
bool isFinal = (decl->isFinal() || C->isFinal());
|
||||
|
||||
Reference in New Issue
Block a user