From 12a71cb912e73b8d0de9356a7dec72d6f45a5fda Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 3 May 2024 17:36:57 +0300 Subject: [PATCH] ForceDeclarationOfImplicitMembers might deserialize Add a cling RAII object to annotate the expected deserialization. --- lib/Interpreter/CppInterOp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Interpreter/CppInterOp.cpp b/lib/Interpreter/CppInterOp.cpp index 48812e92b..826b23060 100644 --- a/lib/Interpreter/CppInterOp.cpp +++ b/lib/Interpreter/CppInterOp.cpp @@ -734,6 +734,9 @@ namespace Cpp { return; auto* CXXRD = dyn_cast(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(DI))