From 54b7176d7081037cf4b08cdbb73c78558450b061 Mon Sep 17 00:00:00 2001 From: daemondzh <69254262+PhrygianGates@users.noreply.github.com> Date: Wed, 30 Aug 2023 18:31:19 +0800 Subject: [PATCH] Update lib/Differentiator/ReverseModeVisitor.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/Differentiator/ReverseModeVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Differentiator/ReverseModeVisitor.cpp b/lib/Differentiator/ReverseModeVisitor.cpp index ed64affe1..7c18b8d3e 100644 --- a/lib/Differentiator/ReverseModeVisitor.cpp +++ b/lib/Differentiator/ReverseModeVisitor.cpp @@ -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(m_Function)) { + if (const auto *MD = dyn_cast(m_Function)) { if (MD->isInstance()) { auto thisType = clad_compat::CXXMethodDecl_getThisType(m_Sema, MD); diff = Visit(UnOp->getSubExpr());