From 5a2c786b3c31b8b54e6ff7c48af6b6d75a9f11ae Mon Sep 17 00:00:00 2001 From: daemondzh <69254262+PhrygianGates@users.noreply.github.com> Date: Tue, 22 Aug 2023 11:54:22 +0000 Subject: [PATCH] fix --- lib/Differentiator/DerivativeBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Differentiator/DerivativeBuilder.cpp b/lib/Differentiator/DerivativeBuilder.cpp index cda7d886d..77a1377c4 100644 --- a/lib/Differentiator/DerivativeBuilder.cpp +++ b/lib/Differentiator/DerivativeBuilder.cpp @@ -92,7 +92,7 @@ namespace clad { } DeclWithContext DerivativeBuilder::cloneFunction( - const clang::FunctionDecl* FD, clad::VisitorBase& VB, + const clang::FunctionDecl* FD, clad::VisitorBase& VD, clang::DeclContext* DC, clang::Sema& m_Sema, clang::ASTContext& m_Context, clang::SourceLocation& noLoc, clang::DeclarationNameInfo name, clang::QualType functionType) { @@ -114,7 +114,7 @@ namespace clad { returnedFD->setAccess(FD->getAccess()); } else { assert (isa(FD) && "Unexpected!"); - enclosingNS = VB.RebuildEnclosingNamespaces(DC); + enclosingNS = VD.RebuildEnclosingNamespaces(DC); returnedFD = FunctionDecl::Create(m_Context, m_Sema.CurContext, noLoc,