Skip to content

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Nov 30, 2023

Fixes rdar://115139065 (Swift Compiler; @_objcImplementation; crash in LetPropertiesOpt)

(cherry picked from commit 98dabf9)

--- CCC ---
Explanation: LetPropertiesOpts assumes that each property is declared in a nominal type. This is not true with @_objcImplementation. The previous fix was incomplete: rdar://103381746.

Scope: -O build; private @_objcImplementation extension; constant private property

Issue: rdar://115139065 (Swift Compiler Crash; @_objcImplementation; crash in LetPropertiesOpt)

Risk: Zero. Bypass optimization on a condition that would always crash.

PR to main: #70113

Testing: Added regression test to the test suite

Reviewer: @eeckstein

Fixes rdar://115139065 (Swift Compiler; @_objcImplementation; crash in
LetPropertiesOpt)

(cherry picked from commit 98dabf9)
@atrick atrick requested a review from a team as a code owner November 30, 2023 07:50
@atrick
Copy link
Contributor Author

atrick commented Nov 30, 2023

@swift-ci test

@atrick atrick requested a review from tbkka November 30, 2023 14:24
@atrick
Copy link
Contributor Author

atrick commented Dec 1, 2023

@tbkka approval please

@atrick atrick merged commit 69e8ea7 into swiftlang:release/5.10 Dec 1, 2023
@atrick atrick deleted the 510-fix-let-props branch December 1, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants