mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 19:03:13 +01:00
Remove what seems to be an ancient LLVM-only issue 314 fix.
This commit is contained in:
@@ -865,14 +865,6 @@ Dsymbol *ScopeDsymbol::search(Loc loc, Identifier *ident, int flags)
|
||||
// Look in symbols declared in this module
|
||||
Dsymbol *s = symtab ? symtab->lookup(ident) : NULL;
|
||||
//printf("\ts = %p, imports = %p, %d\n", s, imports, imports ? imports->dim : 0);
|
||||
// hide the aliases generated by selective or renamed private imports
|
||||
if (s && flags & 1)
|
||||
if (AliasDeclaration* ad = s->isAliasDeclaration())
|
||||
// may be a private alias to a function that is overloaded. these
|
||||
// are sorted out during overload resolution, accept them here
|
||||
if (ad->importprot == PROTprivate && !ad->aliassym->isFuncAliasDeclaration())
|
||||
s = NULL;
|
||||
|
||||
if (s)
|
||||
{
|
||||
//printf("\ts = '%s.%s'\n",toChars(),s->toChars());
|
||||
|
||||
Reference in New Issue
Block a user