Skip to content

Commit 72735ec

Browse files
committed
SILGen: Remove unnecessary isFinal() check from getBaseAccessorFunctionRef()
1 parent 38dfe29 commit 72735ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenApply.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4736,7 +4736,7 @@ static Callee getBaseAccessorFunctionRef(SILGenFunction &SGF,
47364736
}
47374737

47384738
// Dispatch in a struct/enum or to a final method is always direct.
4739-
if (!isClassDispatch || decl->isFinal())
4739+
if (!isClassDispatch)
47404740
return Callee::forDirect(SGF, constant, subs, loc);
47414741

47424742
// Otherwise, if we have a non-final class dispatch to a normal method,

0 commit comments

Comments
 (0)