Skip to content

Commit

Permalink
Fix suggestion of clang-tidy about const KCE
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Oct 18, 2024
1 parent e5fa81d commit 675cbe8
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 @@ -1652,7 +1652,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
}

Expr* CUDAExecConfig = nullptr;
if (auto KCE = dyn_cast<CUDAKernelCallExpr>(CE))
if (const auto KCE = dyn_cast<CUDAKernelCallExpr>(CE))
CUDAExecConfig = Clone(KCE->getConfig());

// If the function is non_differentiable, return zero derivative.
Expand Down

0 comments on commit 675cbe8

Please sign in to comment.