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
vgvassilev and github-actions[bot] authored Dec 8, 2023
1 parent e4c501a commit 574bc52
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 @@ -1304,7 +1304,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
}

StmtDiff ReverseModeVisitor::VisitDeclRefExpr(const DeclRefExpr* DRE) {
DeclRefExpr* clonedDRE = cast<DeclRefExpr>(Clone(DRE));
auto* clonedDRE = cast<DeclRefExpr>(Clone(DRE));
// Check if referenced Decl was "replaced" with another identifier inside
// the derivative
if (auto* VD = dyn_cast<VarDecl>(clonedDRE->getDecl())) {
Expand Down

0 comments on commit 574bc52

Please sign in to comment.