Skip to content
Merged
Changes from all commits
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
9 changes: 9 additions & 0 deletions interpreter/cling/lib/Interpreter/LookupHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include "clang/Sema/Template.h"
#include "clang/Sema/TemplateDeduction.h"

#include "EnterUserCodeRAII.h"

using namespace clang;

namespace cling {
Expand Down Expand Up @@ -472,6 +474,13 @@ namespace cling {

if (typeName.empty()) return TheQT;

// findType is called from TClingLookupHelper::GetPartiallyDesugaredNameWithScopeHandling
// which is called indirectly from TClassEdit::GetNormalizedName via
// the ResolvedTypedef code paths. Through that code path nothing is
// taking the ROOT/Interpreter lock and since this code can modify the
// interpreter, we do need to take lock.
LockCompilationDuringUserCodeExecutionRAII LCDUCER(*m_Interpreter);

// Could trigger deserialization of decls.
Interpreter::PushTransactionRAII RAII(m_Interpreter);

Expand Down