From 668ddee528013cf5b8abf03de207838fb8119454 Mon Sep 17 00:00:00 2001 From: Atell Krasnopolski Date: Wed, 11 Sep 2024 18:32:02 +0200 Subject: [PATCH] change the generated value kind for operator calls --- lib/Differentiator/ReverseModeVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Differentiator/ReverseModeVisitor.cpp b/lib/Differentiator/ReverseModeVisitor.cpp index 280055bcd..5e1d9a297 100644 --- a/lib/Differentiator/ReverseModeVisitor.cpp +++ b/lib/Differentiator/ReverseModeVisitor.cpp @@ -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); }