Cleanup: remove artificial division between lookup results and const lookup
results. No-one was ever modifying a lookup result, and it would not be reasonable to do so. llvm-svn: 230123
This commit is contained in:
@@ -9069,7 +9069,7 @@ private:
|
||||
ASTContext &Context = SemaRef.Context;
|
||||
DeclarationName Name = Context.DeclarationNames.getCXXConstructorName(
|
||||
Context.getCanonicalType(Context.getRecordType(Base)));
|
||||
DeclContext::lookup_const_result Decls = Derived->lookup(Name);
|
||||
DeclContext::lookup_result Decls = Derived->lookup(Name);
|
||||
return Decls.empty() ? Derived->getLocation() : Decls[0]->getLocation();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user