Skip to content

[sil] When checking for ABI compatibility of a convert_function, don'… #13283

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Dec 5, 2017

…t compare the operand against itself, compare the operand against the convert_function result.

This was a thinko on my part.

rdar://34222540

@gottesmm
Copy link
Contributor Author

gottesmm commented Dec 5, 2017

@swift-ci smoke test and merge

1 similar comment
@gottesmm
Copy link
Contributor Author

gottesmm commented Dec 6, 2017

@swift-ci smoke test and merge

shajrawi pushed a commit to shajrawi/swift that referenced this pull request Dec 6, 2017
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
@gottesmm gottesmm closed this Dec 11, 2017
@gottesmm gottesmm deleted the pr-afcd8409db0425081e5cd81862b0f530457bfd4f branch December 11, 2017 20:50
@gottesmm
Copy link
Contributor Author

Oops... forgot about this (was cleaning up my remotes).

@gottesmm gottesmm restored the pr-afcd8409db0425081e5cd81862b0f530457bfd4f branch December 11, 2017 21:44
@gottesmm gottesmm reopened this Dec 11, 2017
…are the operand against itself, compare the operand against the convert_function result.

This was a thinko on my part.

rdar://34222540
@gottesmm gottesmm force-pushed the pr-afcd8409db0425081e5cd81862b0f530457bfd4f branch from a2b3a0c to e9ef817 Compare December 11, 2017 21:59
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm
Copy link
Contributor Author

@swift-ci source compatibility

@gottesmm
Copy link
Contributor Author

@swift-ci Please Test Source Compatibility

@gottesmm gottesmm merged commit d75ca9a into swiftlang:master Dec 12, 2017
@gottesmm gottesmm deleted the pr-afcd8409db0425081e5cd81862b0f530457bfd4f branch December 12, 2017 02:07
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