Skip to content

Conversation

@gottesmm
Copy link
Contributor

Otherwise, sometimes when the object checker emits a diagnostic and cleans up the IR, some of the cleaned up copies are copies that should have been handled by the address checker. The end result is that the address checker does not emit diagnostics for that IR. I found this problem was exascerbated when writing code for escaping closures.

This commit also cleans up the passes in preparation for at a future time moving some of the transformations into the utils folder.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

…at we only run cleanups once.

Otherwise, sometimes when the object checker emits a diagnostic and cleans up
the IR, some of the cleaned up copies are copies that should have been handled
by the address checker. The end result is that the address checker does not emit
diagnostics for that IR. I found this problem was exascerbated when writing code
for escaping closures.

This commit also cleans up the passes in preparation for at a future time moving
some of the transformations into the utils folder.
@gottesmm gottesmm force-pushed the pr-deaaa90141514e059003b3c09e5424293521ef2d branch from f05f992 to 6c922af Compare February 19, 2023 21:55
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

Later parts of the pipeline do not know about the instruction, so we need to
lower it there. This is additionally safe since we will not be performing move
only checking later in the pipeline.
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test Linux platform

@gottesmm gottesmm merged commit 7af52aa into swiftlang:main Feb 20, 2023
@gottesmm gottesmm deleted the pr-deaaa90141514e059003b3c09e5424293521ef2d branch February 20, 2023 04:38
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.

1 participant