Skip to content

Commit

Permalink
Update lib/Differentiator/BaseForwardModeVisitor.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
vgvassilev and github-actions[bot] committed Jul 27, 2024
1 parent 28cef5e commit da4dfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Differentiator/BaseForwardModeVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ BaseForwardModeVisitor::Derive(const FunctionDecl* FD,
// then the specified independent argument is a member variable of the
// class defining the call operator.
// Thus, we need to find index of the member variable instead.
unsigned argIndex;
unsigned argIndex = ~0;
if (m_DiffReq->param_empty() && m_Functor)
argIndex =
std::distance(m_Functor->field_begin(),
Expand Down

0 comments on commit da4dfd7

Please sign in to comment.