Don't try to remove the hidden decls from the lookup.

This commit is contained in:
Vassil Vassilev 2013-10-10 18:10:38 +02:00 committed by sftnight
parent b5205ab61e
commit 499901e277

View File

@ -303,7 +303,9 @@ namespace cling {
if (!Map)
return false;
StoredDeclsMap::iterator Pos = Map->find(VD->getDeclName());
assert(Pos != Map->end() && "no lookup entry for decl");
// FIXME: All of that should be moved in VisitNamedDecl
assert((VD->isHidden() || Pos != Map->end())
&& "no lookup entry for decl");
if (Pos->second.isNull())
// We need to rewire the list of the redeclarations in order to exclude