[AutoDiff] Change derivative vtable thunk linkage to private.

Derivative vtable thunks should never be public. They are only called through vtable lookup.

Resolves rdar://73791807.
This commit is contained in:
Richard Wei
2021-02-16 02:58:05 -05:00
parent 6eb00d5c39
commit 3c02dba2c4
5 changed files with 13 additions and 15 deletions

View File

@@ -701,7 +701,7 @@ std::string SILDeclRef::mangle(ManglingKind MKind) const {
AutoDiffConfig silConfig(
silParameterIndices, resultIndices,
derivativeFunctionIdentifier->getDerivativeGenericSignature());
return mangler.mangleAutoDiffDerivativeFunction(
return mangler.mangleAutoDiffDerivativeFunction(
asAutoDiffOriginalFunction().getAbstractFunctionDecl(),
derivativeFunctionIdentifier->getKind(),
silConfig);