Skip to content

[IRGen] Map result to native representation in emitAsyncReturn #80287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Mar 25, 2025

rdar://147872231

When an async typed throwing function had a result type that combined multiple fields into a single register, we created invalid IR, that could lead to compiler crashes or in some cases even miscompiles. With this fix we are mapping the result to the native representation before mapping it to the combined result type.

rdar://147872231

When an async typed throwing function had a result type that combined multiple fields into a single register, we created invalid IR, that could lead to compiler crashes or in some cases even miscompiles. With this fix we are mapping the result to the native representation before mapping it to the combined result type.
@drexin drexin requested a review from rjmccall as a code owner March 25, 2025 21:40
@drexin
Copy link
Contributor Author

drexin commented Mar 25, 2025

@swift-ci smoke test

@drexin
Copy link
Contributor Author

drexin commented Mar 26, 2025

@swift-ci smoke test macos

@drexin drexin merged commit b7943bb into swiftlang:main Mar 27, 2025
3 checks passed
@drexin drexin deleted the wip-147872231 branch March 27, 2025 20:02
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.

2 participants