diff --git a/include/clad/Differentiator/TBRAnalyzer.h b/include/clad/Differentiator/TBRAnalyzer.h index 4bfa99450..43a8f87f4 100644 --- a/include/clad/Differentiator/TBRAnalyzer.h +++ b/include/clad/Differentiator/TBRAnalyzer.h @@ -163,7 +163,7 @@ class TBRAnalyzer : public clang::ConstStmtVisitor { VarsData() = default; VarsData(const VarsData& other) = default; - VarsData(VarsData&& other): data(std::move(other.data)), prev(other.prev) {} + VarsData(VarsData&& other) noexcept : data(std::move(other.data)), prev(other.prev) {} VarsData& operator=(const VarsData& other) = delete; VarsData& operator=(VarsData&& other) noexcept { if (&data == &other.data) { diff --git a/lib/Differentiator/ReverseModeVisitor.cpp b/lib/Differentiator/ReverseModeVisitor.cpp index 4b1f556ab..b7014a3e1 100644 --- a/lib/Differentiator/ReverseModeVisitor.cpp +++ b/lib/Differentiator/ReverseModeVisitor.cpp @@ -2977,7 +2977,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, return DelayedStoreResult{*this, StmtDiff{Cloned, Cloned}, /*isConstant*/ isConst, /*isInsideLoop*/ false, - /*needsUpdate=*/ false}; + /*pNeedsUpdate=*/ false}; } if (isInsideLoop) { Expr* dummy = E; @@ -2987,7 +2987,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, return DelayedStoreResult{*this, StmtDiff{Push, Pop}, /*isConstant*/ false, - /*isInsideLoop*/ true, /*needsUpdate=*/ true}; + /*isInsideLoop*/ true, /*pNeedsUpdate=*/ true}; } Expr* Ref = BuildDeclRef(GlobalStoreImpl( getNonConstType(E->getType(), m_Context, m_Sema), prefix)); @@ -2995,7 +2995,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, return DelayedStoreResult{*this, StmtDiff{Ref, Ref}, /*isConstant*/ false, - /*isInsideLoop*/ false, /*needsUpdate=*/ true}; + /*isInsideLoop*/ false, /*pNeedsUpdate=*/ true}; } ReverseModeVisitor::LoopCounter::LoopCounter(ReverseModeVisitor& RMV)