Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrygianGates committed Aug 22, 2023
1 parent 0943c62 commit 5a2c786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Differentiator/DerivativeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -114,7 +114,7 @@ namespace clad {
returnedFD->setAccess(FD->getAccess());
} else {
assert (isa<FunctionDecl>(FD) && "Unexpected!");
enclosingNS = VB.RebuildEnclosingNamespaces(DC);
enclosingNS = VD.RebuildEnclosingNamespaces(DC);
returnedFD = FunctionDecl::Create(m_Context,
m_Sema.CurContext,
noLoc,
Expand Down

0 comments on commit 5a2c786

Please sign in to comment.