From 28d9bc930f913f0335a93f6e6d390279d83c0320 Mon Sep 17 00:00:00 2001 From: kchristin Date: Fri, 18 Oct 2024 20:21:29 +0300 Subject: [PATCH] Fix suggestion of clang-tidy about const KCE --- 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 da7383e05..cef3ab7b5 100644 --- a/lib/Differentiator/ReverseModeVisitor.cpp +++ b/lib/Differentiator/ReverseModeVisitor.cpp @@ -1652,7 +1652,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, } Expr* CUDAExecConfig = nullptr; - if (const auto KCE = dyn_cast(CE)) + if (const auto* KCE = dyn_cast(CE)) CUDAExecConfig = Clone(KCE->getConfig()); // If the function is non_differentiable, return zero derivative.