Skip to content

IRGen: Fix DenseMap interior pointer invalidation bug in IRGenSILFunction::visitEndApply. #79161

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

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Feb 5, 2025

Fixes rdar://144216380.

@jckarter jckarter requested a review from rjmccall as a code owner February 5, 2025 17:21
@jckarter
Copy link
Contributor Author

jckarter commented Feb 5, 2025

@swift-ci Please test

@jckarter jckarter force-pushed the end-apply-coroutine-iterator-invalidation branch from 97672d0 to d7466e5 Compare February 5, 2025 17:57
@jckarter
Copy link
Contributor Author

jckarter commented Feb 5, 2025

@swift-ci Please test

@rjmccall
Copy link
Contributor

rjmccall commented Feb 5, 2025

This works, but we could also just set the lowered explosion as the last thing in the function, right?

@jckarter
Copy link
Contributor Author

jckarter commented Feb 5, 2025

I was going for the minimal change, but I'll try that.

…tion::visitEndApply.

Fixes rdar://144216380.
@jckarter jckarter force-pushed the end-apply-coroutine-iterator-invalidation branch from d7466e5 to 3d779cd Compare February 5, 2025 23:50
@jckarter
Copy link
Contributor Author

jckarter commented Feb 5, 2025

Looks like that works, so I'll go with that instead.

@jckarter
Copy link
Contributor Author

jckarter commented Feb 5, 2025

@swift-ci Please test

@jckarter jckarter merged commit 2738678 into swiftlang:main Feb 6, 2025
5 checks passed
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

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