Make sure we use the definition as lookup scope.
This commit is contained in:
parent
fdd3c17a59
commit
2faf5c2400
@ -190,6 +190,8 @@ namespace cling {
|
||||
m_Sema->LookupQualifiedName(R, NSD);
|
||||
m_LifetimeHandlerDecl = R.getAsSingle<CXXRecordDecl>();
|
||||
assert(m_LifetimeHandlerDecl && "LifetimeHandler could not be found.");
|
||||
m_LifetimeHandlerDecl = m_LifetimeHandlerDecl->getDefinition();
|
||||
assert(m_LifetimeHandlerDecl && "LifetimeHandler is not defined");
|
||||
|
||||
// Find the LifetimeHandler::getMemory declaration
|
||||
R.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user