Skip to content

Commit cc523be

Browse files
authored
[AutoDiff] NFC: remove unused variable. (#32411)
1 parent d51ac72 commit cc523be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/Attr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,9 +1711,8 @@ void DifferentiableAttr::setParameterIndices(IndexSubset *paramIndices) {
17111711

17121712
GenericEnvironment *DifferentiableAttr::getDerivativeGenericEnvironment(
17131713
AbstractFunctionDecl *original) const {
1714-
GenericEnvironment *derivativeGenEnv = original->getGenericEnvironment();
17151714
if (auto derivativeGenSig = getDerivativeGenericSignature())
1716-
return derivativeGenEnv = derivativeGenSig->getGenericEnvironment();
1715+
return derivativeGenSig->getGenericEnvironment();
17171716
return original->getGenericEnvironment();
17181717
}
17191718

0 commit comments

Comments
 (0)