Skip to content

Conversation

@dan-zheng
Copy link
Contributor

Fix SILGen for @derivative attributes where the derivative generic signature:

  1. Is equal to the original generic signature.
  2. Has all concrete generic parameters (i.e. all generic parameters are bound to concrete types via
    same-type requirements).

SILGen should emit a differentiability witness with no generic signature.
This is already done for @differentiable attributes: #28772.

Resolves TF-1292.

Fix SILGen for `@derivative` attributes where the derivative generic signature
is equal to the original generic signature and has all concrete generic
parameters (i.e. all generic parameters are bound to concrete types via
same-type requirements).

SILGen should emit a differentiability witness with no generic signature.
This is already done for `@differentiable` attributes.

Resolves TF-1292.
@dan-zheng dan-zheng requested review from marcrasi and rxwei July 10, 2020 00:15
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

@dan-zheng dan-zheng merged commit 383482b into swiftlang:master Jul 10, 2020
@dan-zheng dan-zheng deleted the TF-1292 branch July 10, 2020 03:02
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