]> granicus.if.org Git - clang/commitdiff
Remove RequireCompleteType call which was made redundant by r162586.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Aug 2012 23:51:39 +0000 (23:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Aug 2012 23:51:39 +0000 (23:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162630 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index 80a50e0c791523fa839b517227deae99c38b75df..e66feb0504c1dc3bb8cb00fc5f55091e518dba12 100644 (file)
@@ -2667,13 +2667,6 @@ void Sema::ArgumentDependentLookup(DeclarationName Name, bool Operator,
       T2 = Args[1]->getType();
   }
 
-  // Try to complete all associated classes, in case they contain a
-  // declaration of a friend function.
-  for (AssociatedClassSet::iterator C = AssociatedClasses.begin(),
-                                    CEnd = AssociatedClasses.end();
-       C != CEnd; ++C)
-    RequireCompleteType(Loc, Context.getRecordType(*C), 0);
-
   // C++ [basic.lookup.argdep]p3:
   //   Let X be the lookup set produced by unqualified lookup (3.4.1)
   //   and let Y be the lookup set produced by argument dependent