We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51ac72 commit cc523beCopy full SHA for cc523be
lib/AST/Attr.cpp
@@ -1711,9 +1711,8 @@ void DifferentiableAttr::setParameterIndices(IndexSubset *paramIndices) {
1711
1712
GenericEnvironment *DifferentiableAttr::getDerivativeGenericEnvironment(
1713
AbstractFunctionDecl *original) const {
1714
- GenericEnvironment *derivativeGenEnv = original->getGenericEnvironment();
1715
if (auto derivativeGenSig = getDerivativeGenericSignature())
1716
- return derivativeGenEnv = derivativeGenSig->getGenericEnvironment();
+ return derivativeGenSig->getGenericEnvironment();
1717
return original->getGenericEnvironment();
1718
}
1719
0 commit comments