Skip to content

Commit

Permalink
Fix CXXThisExpr clang-18 attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton authored Mar 20, 2024
1 parent 897d11f commit 9b63f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Differentiator/StmtClone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ DEFINE_CLONE_EXPR(CXXScalarValueInitExpr,
DEFINE_CLONE_EXPR(ExtVectorElementExpr, (Node->getType(), Node->getValueKind(), Clone(Node->getBase()), Node->getAccessor(), Node->getAccessorLoc()))
DEFINE_CLONE_EXPR(CXXBoolLiteralExpr, (Node->getValue(), Node->getType(), Node->getSourceRange().getBegin()))
DEFINE_CLONE_EXPR(CXXNullPtrLiteralExpr, (Node->getType(), Node->getSourceRange().getBegin()))
#if CLANG_VERSION_MAJOR < 12
#if CLANG_VERSION_MAJOR < 18
DEFINE_CLONE_EXPR(CXXThisExpr, (Node->getSourceRange().getBegin(), Node->getType(), Node->isImplicit()))
#else
DEFINE_CLONE_EXPR(CXXThisExpr, (Node->getSourceRange().getBegin(), Node->getType(), Node->isImplicit(),Node->getValueKind()))
Expand Down

0 comments on commit 9b63f11

Please sign in to comment.