Skip to content

Commit

Permalink
Fix unused arg in BuildCallToCudaAtomicAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Oct 3, 2024
1 parent 89bde88 commit 5c0a26d
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 @@ -119,7 +119,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
Expr* finalLHS = LHS;
if (isa<ArraySubscriptExpr>(LHS))
finalLHS = BuildOp(UnaryOperatorKind::UO_AddrOf, LHS);
llvm::SmallVector<Expr*, 2> atomicArgs = {finalLHS, dfdx()};
llvm::SmallVector<Expr*, 2> atomicArgs = {finalLHS, RHS};

assert(!m_Builder.noOverloadExists(UnresolvedLookup, atomicArgs) &&
"atomicAdd function not found");
Expand Down

0 comments on commit 5c0a26d

Please sign in to comment.