Skip to content

Conversation

meg-gupta
Copy link
Contributor

Instead of checking if the end_borrow is ending the lifetime of the store_borrow of the asi under consideration, this code was checking if the store_borrow source is the runningValue which is incorrect in cases where a store_borrow src to another destination gets replaced during mem2reg. This PR fixes the issue.

Instead of checking if the end_borrow is ending the lifetime of the store_borrow of the asi under consideration,
this code was checking if the store_borrow source is the runningValue which is incorrect in cases where a store_borrow
src to another destination gets replaced during mem2reg. This PR fixes the issue.
@meg-gupta
Copy link
Contributor Author

@swift-ci test and merge

@swift-ci swift-ci merged commit 71312fe into swiftlang:main Sep 9, 2022
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