Skip to content

Commit 1b463c9

Browse files
authored
ForceDeclarationOfImplicitMembers might deserialize (#259)
1 parent 763b151 commit 1b463c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,9 @@ namespace Cpp {
734734
return;
735735

736736
auto* CXXRD = dyn_cast<CXXRecordDecl>(D);
737+
#ifdef USE_CLING
738+
cling::Interpreter::PushTransactionRAII RAII(&getInterp());
739+
#endif // USE_CLING
737740
getSema().ForceDeclarationOfImplicitMembers(CXXRD);
738741
for (Decl* DI : CXXRD->decls()) {
739742
if (auto* MD = dyn_cast<DeclType>(DI))

0 commit comments

Comments
 (0)