Skip to content

Commit

Permalink
Update lib/Differentiator/ReverseModeVisitor.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Vassil Vassilev <v.g.vassilev@gmail.com>
  • Loading branch information
ovdiiuv and vgvassilev authored Jul 26, 2024
1 parent ef4f9a8 commit 735e5e0
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 @@ -1009,7 +1009,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
std::string EndName = EndDecl->getNameAsString();
Expr* EndAssign = BuildOp(BO_Add, BuildOp(UO_Deref, RangeExpr), EndInit);
VarDecl* EndVarDecl =
BuildGlobalVarDecl(EndType, EndName, EndAssign, false);
BuildGlobalVarDecl(EndType, EndName, EndAssign, /*DirectInit=*/false);
DeclStmt* AssignEnd = BuildDeclStmt(EndVarDecl);

addToCurrentBlock(AssignEnd);
Expand Down

0 comments on commit 735e5e0

Please sign in to comment.