Skip to content

Commit

Permalink
fix debug clang
Browse files Browse the repository at this point in the history
  • Loading branch information
PetroZarytskyi committed Nov 13, 2024
1 parent 606a551 commit cd40d2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Differentiator/VisitorBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,8 @@ namespace clad {

// Account for the this pointer.
if (isa<CXXMethodDecl>(m_DiffReq.Function) &&
!utils::IsStaticMethod(m_DiffReq.Function))
!utils::IsStaticMethod(m_DiffReq.Function) &&
(!m_DiffReq.Functor || m_DiffReq.Mode != DiffMode::jacobian))
++numOfDerivativeParams;
// All output parameters will be of type `void*`. These
// parameters will be casted to correct type before the call to the actual
Expand Down

0 comments on commit cd40d2f

Please sign in to comment.