Files
Allan Shortlidge d907471bc1 SILGen: Call back deployment thunks from protocol witness thunks.
When a `@backDeployed` function, accessor, or initializer is used as the
witness for a protocol requirement, the protocol witness thunk must call the
declaration through its back deployment thunk under the same conditions as a
direct call does. Otherwise, the witness thunk references the ABI
implementation of the declaration directly, which may not be available at
runtime on older OSes.

Factor the logic that decides whether a reference to a declaration must go
through a back deployment thunk into a shared helper so that direct calls and
protocol witness thunks make the same decision.

Resolves rdar://172458196.
2026-10-27 06:47:02 -07:00
..