Skip to content

Conversation

@glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Jul 24, 2024

Motivation:

The 'unsafeDowncast' can cause a miscompile leading to unexpected runtime behaviour.

Modifications:

  • Use 'as!' instead

Result:

No miscompiles on 5.10

Motivation:

The 'unsafeDowncast' can cause a miscompile leading to unexpected
runtime behaviour.

Modifications:

- Use 'as!' instead

Result:

No miscompiles on 5.10
@glbrntt glbrntt requested a review from simonjbeaumont July 24, 2024 13:37
@czechboy0 czechboy0 requested a review from guoye-zhang July 24, 2024 14:03
@jrflat jrflat merged commit 9bf4c71 into apple:main Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants