Skip to content

Move InstructionDeleter into its own header and fix iterator invalidation. #40243

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 3 commits into from
Nov 18, 2021

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Nov 18, 2021

Add file-level comments on the utility's purpose and intended API usage.

Cleanup API comments.

Use a move in the constructor to prevent reusing the previous callbacks.


In preparation for cleaning up APIs in InstOptUtils to unblock several bug fixes.

Add file-level comments on the utility's purpose and intended API
usage.

Cleanup API comments.
The InstructionDeleter needs to move the callbacks during construction
to prevent the client code from using the old callbacks.

Fixes iterator invalidation bugs.
@atrick atrick changed the title Move InstructionDeleter into its own header. Move InstructionDeleter into its own header and fix iterator invalidation. Nov 18, 2021
@atrick
Copy link
Contributor Author

atrick commented Nov 18, 2021

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit bf83d81 into swiftlang:main Nov 18, 2021
@atrick atrick deleted the deleter-file branch October 18, 2022 21:20
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