Skip to content

Commit efd6c29

Browse files
committed
cleanup
1 parent b44ea5e commit efd6c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenPoly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3164,7 +3164,7 @@ getWitnessDispatchKind(Type selfType, SILDeclRef witness, bool isFree) {
31643164
auto *decl = witness.getDecl();
31653165

31663166
// If the witness is dynamic, go through dynamic dispatch.
3167-
if (decl->getAttrs().hasAttribute<DynamicAttr>())
3167+
if (decl->isDynamic())
31683168
return WitnessDispatchKind::Dynamic;
31693169

31703170
bool isFinal = (decl->isFinal() || C->isFinal());

0 commit comments

Comments
 (0)