Skip to content

Commit

Permalink
Fix ImpCastExpr create
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Oct 8, 2024
1 parent 2445732 commit 2ddb902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Differentiator/ConstantFolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ namespace clad {
QT->isSignedIntegerOrEnumerationType());
Result = clad::synthesizeLiteral(
dyn_cast<EnumType>(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);
Expand Down

0 comments on commit 2ddb902

Please sign in to comment.