Skip to content

Conversation

@dan-zheng
Copy link
Contributor

Assert that differentiability_witness_function is never constructed with
null witness.

Verify that type of differentiability_witness_function instruction matches
the type of the witnessed SIL function.


Motivation: differentiability_witness_function has been missing verification, oops. Verification can help avoid segfaults like #28451 (comment).

Assert that `differentiability_witness_function` is never constructed with
null witness.

Verify that type of `differentiability_witness_function` instruction matches
the type of the witnessed SIL function.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Nov 28, 2019
@dan-zheng dan-zheng requested review from marcrasi and rxwei November 28, 2019 11:32
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng
Copy link
Contributor Author

dan-zheng commented Nov 28, 2019

Running extended test suite on apple:diff-witness-fn-verification now.
Extended test suite can only run on apple/swift branches, oops.

@dan-zheng
Copy link
Contributor Author

Extended test suite passed.
To separate orthogonal patches, let's merge #28451 first, then this patch (#28501).

@dan-zheng
Copy link
Contributor Author

Closing; replaced by #28505 to tensorflow branch.

@dan-zheng dan-zheng closed this Nov 29, 2019
@dan-zheng dan-zheng deleted the diff-witness-fn-verification branch November 29, 2019 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tensorflow This is for "tensorflow" branch PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants