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:
Richard Smith
2015-02-21 02:45:19 +00:00
parent 8d981962c0
commit cf4bdde33a
13 changed files with 33 additions and 40 deletions

View File

@@ -799,8 +799,8 @@ void ResultBuilder::MaybeAddConstructorResults(Result R) {
DeclarationName ConstructorName
= Context.DeclarationNames.getCXXConstructorName(
Context.getCanonicalType(RecordTy));
DeclContext::lookup_const_result Ctors = Record->lookup(ConstructorName);
for (DeclContext::lookup_const_iterator I = Ctors.begin(),
DeclContext::lookup_result Ctors = Record->lookup(ConstructorName);
for (DeclContext::lookup_iterator I = Ctors.begin(),
E = Ctors.end();
I != E; ++I) {
R.Declaration = *I;