swift
7e039731 - [AutoDiff] Fix 'autodiff_function_extract' operand ownership kind. (#27638)

Commit
5 years ago
[AutoDiff] Fix 'autodiff_function_extract' operand ownership kind. (#27638) `ValueOwnershipKindClassifier` and `OperandOwnershipKindClassifier` should have the same classification for `autodiff_function_extract`. `ValueOwnershipKindClassifier`'s classification was fixed by #27199, which gave the correct ownership verification results. Now we fix it in `OperandOwnershipKindClassifier`. `DifferentiableFunctionExtractOriginalExpr`'s SILGen is now corrected to borrowing the argument and emitting a copy for the extracted original function.
Author
Parents
Loading