Skip to content

SIL: reduced test case for SIL verifier failure #30562

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

Closed
wants to merge 1 commit into from

Conversation

compnerd
Copy link
Member

This is a reduced test case from the Foundation test suite which
triggers a SIL verifier error on Windows at least:

SIL verification failed: instruction isn't dominated by its operand: properlyDominates(valueI, I)
Verifying instruction:
     %54 = struct_element_addr %53 : $*S, #S.args // users: %130, %116, %55
->   destroy_addr %54 : $*Array<Substring>        // id: %130

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

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @gottesmm

This is a reduced test case from the Foundation test suite which
triggers a SIL verifier error on Windows at least:

```
SIL verification failed: instruction isn't dominated by its operand: properlyDominates(valueI, I)
Verifying instruction:
     %54 = struct_element_addr %53 : $*S, #S.args // users: %130, %116, %55
->   destroy_addr %54 : $*Array<Substring>        // id: %130
```
@compnerd compnerd force-pushed the sil-verifier-failure branch from cbd7063 to 55b9e43 Compare March 22, 2020 05:44
@compnerd
Copy link
Member Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 55b9e43

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 55b9e43

@gottesmm
Copy link
Contributor

When you run this with -sil-verify-all, what pass crashes?

@compnerd
Copy link
Member Author

DestroyHoisting

@gottesmm
Copy link
Contributor

Thats @eeckstein

@gottesmm
Copy link
Contributor

The pass is the useful information. Next time -sil-verify-all failure happens, include that info please.

@eeckstein
Copy link
Contributor

@compnerd Thanks, I could reproduce this on Mac as well. Is there already a Jira ticket for this?

@eeckstein
Copy link
Contributor

Fixed in #30610

@compnerd
Copy link
Member Author

Thanks @eeckstein! No, I hadn't created the JIRA ticket yet, wasn't sure if it was a known issue or not.

@eeckstein
Copy link
Contributor

Never mind, I merged the fix already

@compnerd
Copy link
Member Author

Thanks @eeckstein!

@compnerd compnerd closed this Mar 24, 2020
@compnerd compnerd deleted the sil-verifier-failure branch March 24, 2020 22: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.

4 participants