From 2ddb9021208025174850e631c385ed551e25e6d0 Mon Sep 17 00:00:00 2001 From: kchristin Date: Tue, 8 Oct 2024 12:05:13 +0300 Subject: [PATCH] Fix ImpCastExpr create --- lib/Differentiator/ConstantFolder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Differentiator/ConstantFolder.cpp b/lib/Differentiator/ConstantFolder.cpp index de9e2f89d..8e7780ad7 100644 --- a/lib/Differentiator/ConstantFolder.cpp +++ b/lib/Differentiator/ConstantFolder.cpp @@ -147,7 +147,7 @@ namespace clad { QT->isSignedIntegerOrEnumerationType()); Result = clad::synthesizeLiteral( dyn_cast(QT)->getDecl()->getIntegerType(), C, APVal); - Expr* cast = ImplicitCastExpr_Create( + Expr* cast = ImplicitCastExpr::Create( C, QT, clang::CastKind::CK_IntegralCast, Result, nullptr, CLAD_COMPAT_ExprValueKind_R_or_PR_Value CLAD_COMPAT_CLANG12_CastExpr_DefaultFPO);