Skip to content

Commit

Permalink
Update lib/Differentiator/ReverseModeForwPassVisitor.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Vassil Vassilev <[email protected]>
  • Loading branch information
PhrygianGates and vgvassilev authored Aug 22, 2023
1 parent 5a2c786 commit 17606c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Differentiator/ReverseModeForwPassVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ReverseModeForwPassVisitor::Derive(const FunctionDecl* FD,

llvm::SaveAndRestore<DeclContext*> saveContext(m_Sema.CurContext);
llvm::SaveAndRestore<Scope*> saveScope(m_CurScope);
m_Sema.CurContext = const_cast<DeclContext*>(m_Function->getDeclContext());
m_Sema.CurContext = const_cast<DeclContext*>(m_Function->getDeclContext()); // NOLINT(cppcoreguidelines-pro-type-const-cast)

DeclWithContext fnBuildRes =
m_Builder.cloneFunction(m_Function, *this, m_Sema.CurContext, m_Sema,
Expand Down

0 comments on commit 17606c8

Please sign in to comment.