Initialize the variable to avoid dereferencing 0 (cid #47244)
git-svn-id: http://root.cern.ch/svn/root/trunk@46535 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
parent
f471d979b1
commit
ac49ac695f
@ -111,15 +111,16 @@ namespace cling {
|
||||
// 1.1. Find gCling
|
||||
SourceLocation NoSLoc = SourceLocation();
|
||||
|
||||
NamespaceDecl* NSD = utils::Lookup::Namespace(m_Sema, "cling");
|
||||
NSD = utils::Lookup::Namespace(m_Sema, "valuePrinterInternal", NSD);
|
||||
DeclContext* DC = m_Context->getTranslationUnitDecl();
|
||||
DC = utils::Lookup::Namespace(m_Sema, "cling");
|
||||
DC = utils::Lookup::Namespace(m_Sema, "valuePrinterInternal", DC);
|
||||
|
||||
|
||||
DeclarationName PVName = &m_Context->Idents.get("PrintValue");
|
||||
LookupResult R(*m_Sema, PVName, NoSLoc, Sema::LookupOrdinaryName,
|
||||
Sema::ForRedeclaration);
|
||||
|
||||
m_Sema->LookupQualifiedName(R, NSD);
|
||||
m_Sema->LookupQualifiedName(R, DC);
|
||||
assert(!R.empty() && "Cannot find PrintValue(...)");
|
||||
|
||||
CXXScopeSpec CSS;
|
||||
|
Loading…
Reference in New Issue
Block a user