From da4dfd71947005acdfc489e0c008e412d38f1939 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 26 Jul 2024 19:46:52 +0300 Subject: [PATCH] Update lib/Differentiator/BaseForwardModeVisitor.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/Differentiator/BaseForwardModeVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Differentiator/BaseForwardModeVisitor.cpp b/lib/Differentiator/BaseForwardModeVisitor.cpp index 68697eae7..75ecc566d 100644 --- a/lib/Differentiator/BaseForwardModeVisitor.cpp +++ b/lib/Differentiator/BaseForwardModeVisitor.cpp @@ -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(),