Skip to content

Commit 48cb4ff

Browse files
committed
Fix build with clang 24
1 parent fb0ddab commit 48cb4ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎cpp2rust/converter/converter_lib.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,11 @@ void DefineImplicitMembers(clang::Sema &sema, clang::CXXRecordDecl *decl) {
17881788
RuleDecls::Trial trial(sema);
17891789
clang::Sema::GlobalEagerInstantiationScope instantiations(
17901790
sema, /*Enabled=*/true, /*AtEndOfTU=*/false);
1791+
#if CLANG_VERSION_MAJOR >= 24
1792+
sema.BuildCXXCtorDefaultInitExpr(decl->getLocation(), field);
1793+
#else
17911794
sema.BuildCXXDefaultInitExpr(decl->getLocation(), field);
1795+
#endif
17921796
instantiations.perform();
17931797
}
17941798
}

0 commit comments

Comments
 (0)