Skip to content

Commit

Permalink
ForceDeclarationOfImplicitMembers might deserialize
Browse files Browse the repository at this point in the history
Add a cling RAII object to annotate the expected deserialization.
  • Loading branch information
vgvassilev authored May 3, 2024
1 parent 763b151 commit 12a71cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Interpreter/CppInterOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,9 @@ namespace Cpp {
return;

auto* CXXRD = dyn_cast<CXXRecordDecl>(D);
#ifdef USE_CLING
cling::Interpreter::PushTransactionRAII RAII(&getInterp());
#endif // USE_CLING
getSema().ForceDeclarationOfImplicitMembers(CXXRD);
for (Decl* DI : CXXRD->decls()) {
if (auto* MD = dyn_cast<DeclType>(DI))
Expand Down

0 comments on commit 12a71cb

Please sign in to comment.