Sema: Remove LookupResult::Entry in favor of AST's LookupResultEntry

Both types store a base declaration and a result declaration;
we can remove one. Soon, it will change to store a base
declaration context, instead.
This commit is contained in:
Slava Pestov
2017-07-17 02:16:09 -07:00
parent fb9d410350
commit 83684eb08a
18 changed files with 113 additions and 100 deletions

View File

@@ -249,7 +249,9 @@ LookupResult &ConstraintSystem::lookupMember(Type base, DeclName name) {
// We are performing dynamic lookup. Filter out redundant results early.
llvm::DenseSet<std::tuple<char, ObjCSelector, CanType>> known;
result->filter([&](ValueDecl *decl) -> bool {
result->filter([&](LookupResultEntry entry) -> bool {
auto *decl = entry.getValueDecl();
if (decl->isInvalid())
return false;