Skip to content
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

ComputeSideEffects: correctly handle escaping arguments #73595

Merged
merged 1 commit into from
May 14, 2024

Conversation

eeckstein
Copy link
Contributor

If an argument escapes in a called function, we don't know anything about the argument's side effects. For example, it could escape to the return value and effects might occur in the caller.

Fixes a miscompile
#73477
rdar://127691335

If an argument escapes in a called function, we don't know anything about the argument's side effects.
For example, it could escape to the return value and effects might occur in the caller.

Fixes a miscompile
swiftlang#73477
rdar://127691335
@eeckstein eeckstein force-pushed the fix-compute-side-effects branch from 9783b02 to 4b2973a Compare May 13, 2024 16:28
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein eeckstein requested a review from atrick May 13, 2024 16:28
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eeckstein eeckstein merged commit d677b7c into swiftlang:main May 14, 2024
6 checks passed
@eeckstein eeckstein deleted the fix-compute-side-effects branch May 14, 2024 05:33
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