Skip to content

test: enable SILOptimizer.definite-init-wrongscope #40676

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 22, 2021

Conversation

compnerd
Copy link
Member

This was matching the wrong throw as the scope was incorrect. Correct
the scope which allows us to match the correct throw and enable the
test on Windows.

While here, add an additional check for the destroy_addr,
dealloc_stack to match the regular exit which is duplicated in the
throwing block. Add an additional check to ensure that we do not escape
the bounds of the function.

Thanks to @adrian-prantl for helping ensure that the changes here are
valid!

Fixes: SR-14267

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

This was matching the wrong `throw` as the scope was incorrect.  Correct
the scope which allows us to match the correct `throw` and enable the
test on Windows.

While here, add an additional check for the `destroy_addr`,
`dealloc_stack` to match the regular exit which is duplicated in the
throwing block.  Add an additional check to ensure that we do not escape
the bounds of the function.

Thanks to @adrian-prantl for helping ensure that the changes here are
valid!

Fixes: SR-14267
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit bfa2fac into swiftlang:main Dec 22, 2021
@compnerd compnerd deleted the definitely-wrong branch December 22, 2021 14:28
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