Temporarily unbreak the clang-on-llvm tests. :) Not going to fix unresolved
lookup all in a night.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89089 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index 70dca79..d736d42 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/lib/Sema/SemaLookup.cpp
@@ -254,7 +254,6 @@
bool Ambiguous = false;
bool HasTag = false, HasFunction = false, HasNonFunction = false;
- bool HasUnresolved = false;
unsigned UniqueTagIndex = 0;
@@ -268,7 +267,7 @@
// 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 @@
}
}
- // 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