Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Operations might trigger deserialization.
  • Loading branch information
vgvassilev committed Aug 7, 2020
commit 6b1c8a69f09d2851561d4a4ac2e778e81eacf187
2 changes: 2 additions & 0 deletions core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2916,6 +2916,8 @@ void TCling::InspectMembers(TMemberInspector& insp, const void* obj,
// inspect bases
// TNamed::ShowMembers(R__insp);
unsigned iNBase = 0;
// Iteration over base classes might deserialize.
cling::Interpreter::PushTransactionRAII deserRAII(GetInterpreterImpl());
for (clang::CXXRecordDecl::base_class_const_iterator iBase
= recordDecl->bases_begin(), eBase = recordDecl->bases_end();
iBase != eBase; ++iBase, ++iNBase) {
Expand Down
2 changes: 2 additions & 0 deletions core/metacling/src/TClingDataMemberInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ long TClingDataMemberInfo::Property() const
property = TClingDeclInfo::Property(property, qt);
const clang::TagType *tt = qt->getAs<clang::TagType>();
if (tt) {
// tt->getDecl() might deserialize.
cling::Interpreter::PushTransactionRAII RAII(fInterp);
const clang::TagDecl *td = tt->getDecl();
if (td->isClass()) {
property |= kIsClass;
Expand Down