Skip to content

Commit

Permalink
Update lib/Differentiator/ReverseModeVisitor.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
PhrygianGates and github-actions[bot] authored Aug 30, 2023
1 parent 2f2c0e6 commit 54b7176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Differentiator/ReverseModeVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
}

if (opCode == UnaryOperatorKind::UO_Deref && m_Mode == DiffMode::reverse_mode_forward_pass) {
if (auto MD = dyn_cast<CXXMethodDecl>(m_Function)) {
if (const auto *MD = dyn_cast<CXXMethodDecl>(m_Function)) {
if (MD->isInstance()) {
auto thisType = clad_compat::CXXMethodDecl_getThisType(m_Sema, MD);
diff = Visit(UnOp->getSubExpr());
Expand Down

0 comments on commit 54b7176

Please sign in to comment.