Skip to content

Commit

Permalink
Update lib/Differentiator/DerivativeBuilder.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev authored May 20, 2024
1 parent b6f8f15 commit 2ee975c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Differentiator/DerivativeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static void registerDerivative(FunctionDecl* derivedFD, Sema& semaRef) {
// derivative is not differentiated again using numerical
// differentiation due to unavailable definition.
if (auto* CE = dyn_cast<CallExpr>(OverloadedFn))
if (auto* FD = CE->getDirectCallee())
if (FunctionDecl* FD = CE->getDirectCallee())
m_DFC.AddToDerivativeSet(FD);
}
return OverloadedFn;
Expand Down

0 comments on commit 2ee975c

Please sign in to comment.