Skip to content

Commit 21f7746

Browse files
authored
Fix clang 23 build
1 parent 8754fe3 commit 21f7746

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cpp2rust/converter/converter.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ bool Converter::VisitCXXRecordDecl(clang::CXXRecordDecl *decl) {
970970
for (auto *method : decl->methods()) {
971971
if (IsComparisonOperator(method) && method->isDefaulted() &&
972972
!method->doesThisDeclarationHaveABody()) {
973-
#if CLANG_VERSION_MAJOR >= 23
973+
#if CLANG_VERSION_MAJOR >= 24
974974
auto kind = method->getDefaultedComparisonKind();
975975
#else
976976
auto kind = sema_->getDefaultedComparisonKind(method);

0 commit comments

Comments
 (0)