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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user