Silence coverity #47876.

git-svn-id: http://root.cern.ch/svn/root/trunk@46528 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
Vassil Vassilev 2012-10-14 12:01:32 +00:00
parent dfa21b692d
commit 31b81f4212

View File

@ -105,10 +105,10 @@ namespace test {
// Only for demo resolve all unknown objects to cling::test::Tester
if (!m_TesterDecl) {
clang::Sema& S = m_Interpreter->getSema();
clang::NamespaceDecl* NSD = utils::Lookup::Namespace(&S, "cling");
NSD = utils::Lookup::Namespace(&S, "test", NSD);
m_TesterDecl = utils::Lookup::Named(&S, "Tester", NSD);
clang::Sema& SemaRef = m_Interpreter->getSema();
clang::NamespaceDecl* NSD = utils::Lookup::Namespace(&SemaRef, "cling");
NSD = utils::Lookup::Namespace(&SemaRef, "test", NSD);
m_TesterDecl = utils::Lookup::Named(&SemaRef, "Tester", NSD);
}
assert (m_TesterDecl && "Tester not found!");
R.addDecl(m_TesterDecl);