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:
@@ -136,7 +136,7 @@ SILGenFunction::emitSiblingMethodRef(SILLocation loc,
|
||||
// If the method is dynamic, access it through runtime-hookable virtual
|
||||
// dispatch (viz. objc_msgSend for now).
|
||||
if (methodConstant.hasDecl()
|
||||
&& methodConstant.getDecl()->getAttrs().hasAttribute<DynamicAttr>())
|
||||
&& methodConstant.getDecl()->isDynamic())
|
||||
methodValue = emitDynamicMethodRef(loc, methodConstant,
|
||||
SGM.Types.getConstantInfo(methodConstant));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user