Skip to content

Commit

Permalink
change the generated value kind for operator calls
Browse files Browse the repository at this point in the history
  • Loading branch information
gojakuch committed Sep 11, 2024
1 parent 7aceff9 commit 668ddee
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 @@ -2135,7 +2135,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
CallArgs.insert(CallArgs.begin(), Clone(OCE->getArg(0)));
call = CXXOperatorCallExpr::Create(
m_Context, OCE->getOperator(), Clone(CE->getCallee()), CallArgs,
FD->getCallResultType(), OCE->getValueKind(), Loc,
FD->getCallResultType(), VK_LValue, Loc,
CLAD_COMPAT_CLANG11_CXXOperatorCallExpr_Create_ExtraParamsOverride());
return StmtDiff(call);
}
Expand Down

0 comments on commit 668ddee

Please sign in to comment.