]> granicus.if.org Git - clang/commitdiff
Revert r93378, which is incorrect but currently unobservable (because the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Dec 2015 01:02:53 +0000 (01:02 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 29 Dec 2015 01:02:53 +0000 (01:02 +0000)
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

lib/Sema/SemaLookup.cpp

index f56b722bcaea3d90f07cef72c82ba481ff7591af..2aeffd82b763865ef36a3c927bbe72e2a8320c40 100644 (file)
@@ -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<ShadowMap>::reverse_iterator SM = ShadowMaps.rbegin();
   for (std::list<ShadowMap>::reverse_iterator SMEnd = ShadowMaps.rend();