swift
b1fb0886 - [AutoDiff] Fix PullbackCloner tangent value category mismatch issues.

Commit
5 years ago
[AutoDiff] Fix PullbackCloner tangent value category mismatch issues. Fix SIL pullback function type calculation: remap original `unowned` results to the correct pullback parameter convention depending on the `TangentVector` type lowering. Make `PullbackCloner` visitors for the following instructions check and handle tangent value categories: `struct`, `struct_extract`, `tuple`, `destructure_tuple`. Add differentiation tests for `Optional` struct and class stored properties, exercising the instruction visitors above. Resolves SR-13430.
Author
Committer
Parents
Loading