Skip to content

Set SIL stage to lowered at the *start* of address lowering #13294

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
Dec 6, 2017

Conversation

shajrawi
Copy link

@shajrawi shajrawi commented Dec 6, 2017

radar rdar://problem/35868805

@shajrawi
Copy link
Author

shajrawi commented Dec 6, 2017

@swift-ci Please smoke test and merge

SIL is not in a consistent state during the lowering pass. We just make sure it is correct at the end of the pass. This broke PR swiftlang#13283 (verifying convert_function instructions in the builder)

To workaround this issue we will be running the builder’s verifier when the SIL stage != SILStage::Lowered

The SIL stage is set to lowered at the end of the module pass. This means that if this is the first lowering pass said workaround would not work.

This commit sets the SIL stage to lowered at the beginning of the module pass instead
@shajrawi
Copy link
Author

shajrawi commented Dec 6, 2017

@swift-ci Please smoke test and merge

@swift-ci swift-ci merged commit 28fd4c4 into swiftlang:master Dec 6, 2017
@shajrawi shajrawi deleted the lowered_sil branch December 6, 2017 02:21
@gottesmm
Copy link
Contributor

gottesmm commented Dec 6, 2017

Thanks Joe!

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