mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user