Skip to content

Fix CSE::processOpenExistentialRef #35265

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
Jan 6, 2021
Merged

Conversation

meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented Jan 5, 2021

PR#34895 changed CSE to have common object for OpenedArchetypesTracker and Cloner.
CSE however frees and allocates instructions and this can result in the Cloner having stale state for deleted instructions whose address may be re-used while creating new instructions. Using a local object avoids this.

@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

@swift-ci test source compatibility

@swift-ci
Copy link
Contributor

swift-ci commented Jan 5, 2021

Build failed
Swift Test Linux Platform
Git Sha - b5f9b888f39f649b5e9664e0980a4626ad5f2f42

@swift-ci
Copy link
Contributor

swift-ci commented Jan 5, 2021

Build failed
Swift Test OS X Platform
Git Sha - b5f9b888f39f649b5e9664e0980a4626ad5f2f42

@meg-gupta
Copy link
Contributor Author

ReactiveCocoa passed here - https://ci.swift.org/job/swift-PR-source-compat-suite/5160/

PR#34895 changed CSE to have common object for OpenedArchetypesTracker and Cloner.
CSE however frees and allocates instructions and this can result in the
Cloner having stale state for deleted instructions whose address may be
re-used while creating new instructions. Using a local object avoids
this.
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test and merge

1 similar comment
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test and merge

@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test Linux Platform

1 similar comment
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test Linux Platform

@meg-gupta meg-gupta merged commit d125f3a into swiftlang:main Jan 6, 2021
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.

3 participants