Skip to content

PredictableMemOpt: Fix source location for injected destroys #65236

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
Apr 18, 2023

Conversation

adrian-prantl
Copy link
Contributor

It's not correct to copy the location from an instruction and turn it into a RegularLocation if the Location was, e.g., a CleanupLocation. It's always safe to use a compilergenerated location instead.

Caught by the dihole verification int the source compatibility suite.

rdar://107984038

It's not correct to copy the location from an instruction and turn it into a
RegularLocation if the Location was, e.g., a CleanupLocation. It's always safe
to use a compilergenerated location instead.

Caught by the dihole verification int the source compatibility suite.

rdar://107984038
@adrian-prantl adrian-prantl requested a review from eeckstein April 17, 2023 22:26
@adrian-prantl
Copy link
Contributor Author

@swift-ci test and merge

@swift-ci swift-ci merged commit 3f0a57a into swiftlang:main Apr 18, 2023
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