Skip to content

Commit

Permalink
Address clang-tidy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
PetroZarytskyi committed Mar 13, 2024
1 parent c660cb3 commit 067ab71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Differentiator/VisitorBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ namespace clad {
CXXScopeSpec CSS;
CSS.Extend(m_Context, GetCladNamespace(), noLoc, noLoc);
LookupResult& Push = GetCladTapePush();
auto PushDRE =
Expr* PushDRE =
m_Sema.BuildDeclarationNameExpr(CSS, Push, /*ADL*/ false).get();
for (unsigned i = 0, e = numArgs; i < e; i++) {
QualType argTy = args[i]->getType();
Expand All @@ -808,7 +808,7 @@ namespace clad {
Expr* PushExpr = BuildDeclRef(gradVar);
if (!isCladArrayType(argTy))
PushExpr = BuildOp(UO_AddrOf, PushExpr);
Expr* callArgs[] = {TapeRef, PushExpr};
std::array<Expr*, 2> callArgs = {TapeRef, PushExpr};
Stmt* PushStmt =
m_Sema
.ActOnCallExpr(getCurrentScope(), PushDRE, noLoc, callArgs, noLoc)
Expand Down

0 comments on commit 067ab71

Please sign in to comment.