From: Richard Smith Date: Tue, 29 Dec 2015 01:02:53 +0000 (+0000) Subject: Revert r93378, which is incorrect but currently unobservable (because the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f73d4a25e454bfe9e3756722bf07151c66eb2fd4;p=clang Revert r93378, which is incorrect but currently unobservable (because the underlying declaration of a NamedDecl happens to always have the same name and identifier namespace as the decl itself today). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256529 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index f56b722bca..2aeffd82b7 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -3305,9 +3305,6 @@ public: } // end anonymous namespace NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) { - // Look through using declarations. - ND = ND->getUnderlyingDecl(); - unsigned IDNS = ND->getIdentifierNamespace(); std::list::reverse_iterator SM = ShadowMaps.rbegin(); for (std::list::reverse_iterator SMEnd = ShadowMaps.rend();