Files
swift-mirror/test/IRGen/method_linkage.swift
Slava Pestov b9f4e12365 SIL: Fix visibility of final method symbols in resilient classes
For resilient classes, we hide method symbols if possible, to
enforce that only resilient access patterns are used to call
and override methods.

Final methods can be referenced directly, however, but we were
incorrectly hiding them anyway if they were overrides. To consider
overrides differently here only makes sense in the non-resilient
case; in fact this was a regression from <rdar://problem/55559104>,
which fixed a bug with non-resilient classes by adding this check.

I tried to add comments and clean up the logic here a bit to be
less confusing in the future.

Fixes <rdar://problem/57864425>.
2020-01-14 18:47:35 -05:00

5.2 KiB