]> granicus.if.org Git - clang/commitdiff
Temporarily unbreak the clang-on-llvm tests. :) Not going to fix unresolved
authorJohn McCall <rjmccall@apple.com>
Tue, 17 Nov 2009 10:36:41 +0000 (10:36 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 17 Nov 2009 10:36:41 +0000 (10:36 +0000)
lookup all in a night.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89089 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index 70dca799ae1dd86c23bbf2c061a715b34efbf59c..d736d42f77fab3a4ac551038c3653dd1dcc0814c 100644 (file)
@@ -254,7 +254,6 @@ void Sema::LookupResult::resolveKind() {
 
   bool Ambiguous = false;
   bool HasTag = false, HasFunction = false, HasNonFunction = false;
-  bool HasUnresolved = false;
 
   unsigned UniqueTagIndex = 0;
   
@@ -268,7 +267,7 @@ void Sema::LookupResult::resolveKind() {
       // continue at this index).
       Decls[I] = Decls[--N];
     } else if (isa<UnresolvedUsingDecl>(D)) {
-      HasUnresolved = true;
+      // FIXME: support unresolved using decls
       Decls[I] = Decls[--N];
     } else {
       // Otherwise, do some decl type analysis and then continue.
@@ -288,13 +287,6 @@ void Sema::LookupResult::resolveKind() {
     }
   }
 
-  // Postpone all other decisions if we have an unresolved decl, even
-  // if we can prove ambiguity.  We can probably do better than this.
-  if (HasUnresolved) {
-    ResultKind = LookupResult::FoundOverloaded;
-    return;
-  }
-
   // C++ [basic.scope.hiding]p2:
   //   A class name or enumeration name can be hidden by the name of
   //   an object, function, or enumerator declared in the same