[6.2][Distributed] Fix computed properties in protocols on arm64e #82010
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This actually manifested as an pointer auth crash, but the real reason being is that we messed up the order of elements in the witness table. If we'd skip the accessor like this, the types we sign/auth with would no longer align and manifest in a crash.
There is no real reason to skip this entry so we just bring it back, and avoid making this special in any way.
Scope/Impact: Computed distributed properties in distributed protocols were not usable on arm64e before this change. Causing trouble to some protocols being adopted to distributed actors.
Risk: Low, the change removes a special case that was not necessary specifically in distributed computed property accessor entries in witness tables. No impact on other code.
Testing: CI testing, verified the arm64e issue specifically locally
Reviewed by: @xedin
Original PR: #82009
Radar: rdar://125628060