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); }