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 <[email protected]>
  • Loading branch information
ovdiiuv and vgvassilev authored Jul 26, 2024
1 parent f6d2bf9 commit a058770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Differentiator/ReverseModeVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,8 +1016,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
DeclRefExpr* EndExpr =
BuildDeclRef(cast<VarDecl>(cast<DeclStmt>(AssignEnd)->getSingleDecl()));

llvm::SaveAndRestore<bool> SaveIsInsideLoop(isInsideLoop);
isInsideLoop = true;
llvm::SaveAndRestore<bool> SaveIsInsideLoop(isInsideLoop, /*NewValue=*/true);
const VarDecl* LoopVD = FRS->getLoopVariable();
Expr* IncBegin = BuildOp(UO_PreInc, BeginDeclRef);
Expr* d_IncBegin = BuildOp(UO_PreInc, d_BeginDeclRef);
Expand Down

0 comments on commit a058770

Please sign in to comment.