Make sure we use the definition as lookup scope.

This commit is contained in:
Axel Naumann 2017-06-13 15:19:58 +02:00 committed by sftnight
parent fdd3c17a59
commit 2faf5c2400

View File

@ -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();