Skip to content

[IRGen] Don't apply direct error return to functions with indirect result #75150

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 2 commits into from
Jul 11, 2024

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Jul 10, 2024

rdar://130971168

Having direct and indirect results on the same function is illegal.

drexin added 2 commits July 10, 2024 16:09
…sary

rdar://131494255

When merging a ptr into an int value for direct error return, we have to properly convert it back to a pointer at the callsite
…sult

rdar://130971168

Having direct and indirect results on the same function is illegal.
@drexin drexin requested a review from rjmccall as a code owner July 10, 2024 23:13
@drexin
Copy link
Contributor Author

drexin commented Jul 10, 2024

@swift-ci smoke test

@drexin
Copy link
Contributor Author

drexin commented Jul 10, 2024

Merge after #75149

@drexin drexin merged commit 8fca31e into swiftlang:main Jul 11, 2024
3 checks passed
@drexin drexin deleted the wip-130971168 branch July 11, 2024 04:07
@glessard
Copy link
Contributor

Thanks @drexin!

aschwaighofer added a commit to aschwaighofer/swift that referenced this pull request Sep 12, 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.

2 participants